mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Change the silence insertion parameters.
This commit is contained in:
@@ -73,7 +73,7 @@ m_netN(0U),
|
|||||||
m_networkWatchdog(1000U, 0U, 1500U),
|
m_networkWatchdog(1000U, 0U, 1500U),
|
||||||
m_rfTimeoutTimer(1000U, timeout),
|
m_rfTimeoutTimer(1000U, timeout),
|
||||||
m_netTimeoutTimer(1000U, timeout),
|
m_netTimeoutTimer(1000U, timeout),
|
||||||
m_packetTimer(1000U, 0U, 400U),
|
m_packetTimer(1000U, 0U, 300U),
|
||||||
m_interval(),
|
m_interval(),
|
||||||
m_elapsed(),
|
m_elapsed(),
|
||||||
m_rfFrames(0U),
|
m_rfFrames(0U),
|
||||||
@@ -1249,8 +1249,8 @@ void CDMRSlot::clock()
|
|||||||
|
|
||||||
if (frames > m_netFrames) {
|
if (frames > m_netFrames) {
|
||||||
unsigned int count = frames - m_netFrames;
|
unsigned int count = frames - m_netFrames;
|
||||||
if (count > 3U) {
|
if (count > 5U) {
|
||||||
LogDebug("DMR Slot %u, lost audio for 400ms filling in, elapsed: %ums, expected: %u, received: %u", m_slotNo, elapsed, frames, m_netFrames);
|
LogDebug("DMR Slot %u, lost audio for 300ms filling in, elapsed: %ums, expected: %u, received: %u", m_slotNo, elapsed, frames, m_netFrames);
|
||||||
insertSilence(count - 1U);
|
insertSilence(count - 1U);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user