search for: jitter_buffer_get_avaliable_count

Displaying 1 result from an estimated 1 matches for "jitter_buffer_get_avaliable_count".

2009 Mar 03
0
speex_jitter_buffer and DTX (and multiple streams)
...as far as I can see the speex_jitter_get(..) performs quite a bit of code. In this case just to iterate through all buffers calling get(...) is quite inefficient so Im considering implementing a int buffer_has_data(SpeexJitter* jitter) { int count = 0; jitter_buffer_ctl(Jitter->packets, JITTER_BUFFER_GET_AVALIABLE_COUNT, &count); return count; } so I wouldnt use the speex_jitter_get(..) unless it had 1 or more packets, but would this ruin the ticking? Another reason for using this method is that I need to detect which client is saying anything as I want to merge the streams (after decode ofc). I have...