search for: buffer_has_data

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

2009 Mar 03
0
speex_jitter_buffer and DTX (and multiple streams)
...es. There is no upper limit (in theory) to how many client streams/buffers there can be and 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 tha...