[Speex-dev] New jitter.c, bug in speex_jitter_get?

Thorvald Natvig speex at natvig.com
Tue May 2 09:15:32 PDT 2006


Hi.

After changing my code to construct a JitterBufferPacket and passing that 
to speex_jitter_put, my program works with the new jitter buffer using the 
wrapper functions (speex_jitter_* instead of the new jitter_buffer_*).

However, a lot of
warning: did you forget to call jitter_buffer_tick() by any chance?
is displayed.

Looking at speex_jitter_get, the logic seems to be as follows:

if there is another frame in the previously fetched packet, decode it and
call jitter_buffer_tick

else get a new packet and decode first frame.

But when a new packet is fetched, jitter_buffer_tick isn't called, so if I 
only have one frame per packet, it will never be called.

Is this a bug in speex_jitter_get, or am I doing something wrong?


More information about the Speex-dev mailing list