mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Final jitter buffer rollback cleanups.
This commit is contained in:
parent
e6ed2e17a1
commit
bf1773ebcc
2 changed files with 11 additions and 6 deletions
|
|
@ -246,8 +246,15 @@ bool CDMRNetwork::write(const CDMRData& data)
|
|||
} else if (dataType == DT_VOICE) {
|
||||
buffer[15U] |= data.getN();
|
||||
} else {
|
||||
if (dataType == DT_VOICE_LC_HEADER)
|
||||
if (dataType == DT_VOICE_LC_HEADER) {
|
||||
m_streamId[slotIndex] = ::rand() + 1U;
|
||||
count = 2U;
|
||||
}
|
||||
|
||||
if (dataType == DT_CSBK || dataType == DT_DATA_HEADER) {
|
||||
m_streamId[slotIndex] = ::rand() + 1U;
|
||||
count = 1U;
|
||||
}
|
||||
|
||||
buffer[15U] |= (0x20U | dataType);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue