Make silence infillinf a little looser.

This commit is contained in:
Jonathan Naylor
2016-07-14 20:31:29 +01:00
parent 9e83d23c48
commit 49b002a463
3 changed files with 6 additions and 6 deletions

View File

@@ -1235,8 +1235,8 @@ void CDMRSlot::clock()
if (frames > m_netFrames) {
unsigned int count = frames - m_netFrames;
if (count > 3U) {
LogDebug("DMR Slot %u, lost audio for over 200ms filling in, elapsed: %ums, expected: %u, received: %u", m_slotNo, elapsed, frames, m_netFrames);
if (count > (300U / DMR_SLOT_TIME)) {
LogDebug("DMR Slot %u, lost audio for over 300ms filling in, elapsed: %ums, expected: %u, received: %u", m_slotNo, elapsed, frames, m_netFrames);
insertSilence(count - 1U);
}
}