Full integration of the jitter buffer into DMR.

This commit is contained in:
Jonathan Naylor
2017-11-23 13:18:37 +00:00
parent ce891019d3
commit e1800c0fe0
8 changed files with 66 additions and 204 deletions

View File

@@ -172,13 +172,14 @@ bool CDMRNetwork::read(CDMRData& data)
if (wanted) {
unsigned char seqNo = m_buffer[4U];
m_jitterBuffers[slotNo]->addData(m_buffer, seqNo);
m_jitterBuffers[slotNo]->addData(m_buffer, length, seqNo);
}
}
}
for (unsigned int slotNo = 1U; slotNo <= 2U; slotNo++) {
JB_STATUS status = m_jitterBuffers[slotNo]->getData(m_buffer);
unsigned int length = 0U;
JB_STATUS status = m_jitterBuffers[slotNo]->getData(m_buffer, length);
if (status != JBS_NO_DATA) {
unsigned char seqNo = m_buffer[4U];