From 171f0ac8cc8bc080bff382d74ee29850a0444443 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 10 Aug 2016 11:50:43 +0100 Subject: [PATCH] Tweak the silence infill parameters. --- DMRSlot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DMRSlot.cpp b/DMRSlot.cpp index db3d9da..476f603 100644 --- a/DMRSlot.cpp +++ b/DMRSlot.cpp @@ -73,7 +73,7 @@ m_netN(0U), m_networkWatchdog(1000U, 0U, 1500U), m_rfTimeoutTimer(1000U, timeout), m_netTimeoutTimer(1000U, timeout), -m_packetTimer(1000U, 0U, 300U), +m_packetTimer(1000U, 0U, 100U), m_interval(), m_elapsed(), m_rfFrames(0U), @@ -1245,12 +1245,12 @@ void CDMRSlot::clock() if (m_packetTimer.isRunning() && m_packetTimer.hasExpired()) { unsigned int elapsed = m_elapsed.elapsed(); - unsigned int frames = elapsed / DMR_SLOT_TIME; + unsigned int frames = elapsed / DMR_SLOT_TIME; if (frames > m_netFrames) { unsigned int count = frames - m_netFrames; - if (count > 3U) { - LogDebug("DMR Slot %u, lost audio for 300ms filling in, elapsed: %ums, expected: %u, received: %u", m_slotNo, elapsed, frames, m_netFrames); + if (count >= 8U) { + LogDebug("DMR Slot %u, lost audio for 500ms filling in, elapsed: %ums, expected: %u, received: %u", m_slotNo, elapsed, frames, m_netFrames); insertSilence(count - 1U); } }