You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can not understand why we make speex_decode_int of jitter->current_packet 2 times
first time after get packet from buffer, after set flag valid_bits to 1, second time at next speex_jitter_get call
voidspeex_jitter_get(SpeexJitter*jitter, spx_int16_t*out, int*current_timestamp) {
//....if (jitter->valid_bits)
{
//// here we decode last received packet to out second time//ret=speex_decode_int(jitter->dec, &jitter->current_packet, out);
//...
}
//....// // here we decode last received packet to out first time//ret=speex_decode_int(jitter->dec, &jitter->current_packet, out);
if (ret==0)
{
jitter->valid_bits=1;
}
//....
}
Thanks!
The text was updated successfully, but these errors were encountered:
I can not understand why we make speex_decode_int of jitter->current_packet 2 times
first time after get packet from buffer, after set flag valid_bits to 1, second time at next speex_jitter_get call
speex_jitter_buffer.c:
Thanks!
The text was updated successfully, but these errors were encountered: