Fixed use of the jitter buffer in celtclient.
This commit is contained in:
parent
c5f2a9d988
commit
ae2fb591b8
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ int main(int argc, char *argv[])
|
||||||
JitterBufferPacket packet;
|
JitterBufferPacket packet;
|
||||||
/* Get audio from the jitter buffer */
|
/* Get audio from the jitter buffer */
|
||||||
packet.data = msg;
|
packet.data = msg;
|
||||||
|
packet.len = MAX_MSG;
|
||||||
jitter_buffer_get(jitter, &packet, FRAME_SIZE, NULL);
|
jitter_buffer_get(jitter, &packet, FRAME_SIZE, NULL);
|
||||||
celt_decode(dec_state, packet.data, packet.len, pcm);
|
celt_decode(dec_state, packet.data, packet.len, pcm);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue