search for: speex_jitter_max_buffer_size

Displaying 9 results from an estimated 9 matches for "speex_jitter_max_buffer_size".

2007 Jan 29
1
How to reduce jitter buffer size?
Hi, I looked at the jitter buffer code and it seems like the maximum number of frames that Speex can hold up to is 200 (SPEEX_JITTER_MAX_BUFFER_SIZE). This is equivalent to 4 seconds (20msec/frame * 200 frames). Can I just reduce this constant to limit the size? I know I'll reduce the smoothness of delayed frames but I want to reduce the delay in case my audio application isn't servicing the frames in time and hence the delay will gr...
2007 Aug 10
1
Jitter buffer latency
...es VOIP-like functions and without using jitter buffer, the end-to-end latency is around 250 ms (I'm using lowband 5.97 kpbs). However, when I tried to incorporate the jitter buffer feature, the latency would grow as time elapsed (up to a few seconds). I tried hacking the code by changing the SPEEX_JITTER_MAX_BUFFER_SIZE constant in jitter.c from 200 to 20 and the latency went down to around 300ms. Am I doing something wrong in my application code? Please advise. Thanks. Regards, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attac...
2005 Sep 18
3
How does the jitter buffer "catch up"?
Is is possible to give a short hint about how the jitter buffer would "catch up" when network condition have been bad and then get better? I'm using the jitter buffer with success now, but sometimes I have a long delay that's caused by bad network conditions and then later when the conditions get better, I would think we would want the audio to gradually catch up with real-time
2005 Sep 18
2
How does the jitter buffer "catch up"?
...imum whatever the circumstances, so most of the late frames will be > dropped. Yes. Actually, the best way to handle that would be to (eventually) change the code to drop frames in silence or low-energy periods. > To achieve the effect you're describing, you'd need to increase > SPEEX_JITTER_MAX_BUFFER_SIZE to the longest delay you're expecting, and > then inside the block on line 231 (which says) > if (late_ratio_short + ontime_ratio_short < .005 && late_ratio_long + > ontime_ratio_long < .01 && early_ratio_short > .8) > .. add something that multiplies...
2005 Sep 18
0
How does the jitter buffer "catch up"?
...king for, meaning the jitter buffer will soon reset again. So no, it doesn't "catch up", it tries to keep latency to an absolute minimum whatever the circumstances, so most of the late frames will be dropped. To achieve the effect you're describing, you'd need to increase SPEEX_JITTER_MAX_BUFFER_SIZE to the longest delay you're expecting, and then inside the block on line 231 (which says) if (late_ratio_short + ontime_ratio_short < .005 && late_ratio_long + ontime_ratio_long < .01 && early_ratio_short > .8) .. add something that multiplies all the magins with...
2005 Sep 18
0
How does the jitter buffer "catch up"?
...change the header, which means you need to recompile both speex and your application. So changing the maximum number of buffered packets means you can't share libspeex.dll/.so with other applications. >> To achieve the effect you're describing, you'd need to increase >> SPEEX_JITTER_MAX_BUFFER_SIZE to the longest delay you're expecting, and >> then inside the block on line 231 (which says) >> if (late_ratio_short + ontime_ratio_short < .005 && late_ratio_long + >> ontime_ratio_long < .01 && early_ratio_short > .8) >> .. add something th...
2008 Mar 29
0
GCC/ELF Visibility patch
...(int step_size) { JitterBuffer *jitter = (JitterBuffer*)speex_alloc(sizeof(JitterBuffer)); if (jitter) @@ -294,7 +294,7 @@ } /** Reset jitter buffer */ -void jitter_buffer_reset(JitterBuffer *jitter) +EXPORT void jitter_buffer_reset(JitterBuffer *jitter) { int i; for (i=0;i<SPEEX_JITTER_MAX_BUFFER_SIZE;i++) @@ -325,7 +325,7 @@ } /** Destroy jitter buffer */ -void jitter_buffer_destroy(JitterBuffer *jitter) +EXPORT void jitter_buffer_destroy(JitterBuffer *jitter) { jitter_buffer_reset(jitter); speex_free(jitter); @@ -365,7 +365,7 @@ /** Put one packet into the jitter buffer */ -v...
2005 Sep 18
2
How does the jitter buffer "catch up"?
...will soon reset again. > > So no, it doesn't "catch up", it tries to keep latency to an > absolute minimum whatever the circumstances, so most of the > late frames will be dropped. > > To achieve the effect you're describing, you'd need to > increase SPEEX_JITTER_MAX_BUFFER_SIZE to the longest delay > you're expecting, and then inside the block on line 231 (which says) > if (late_ratio_short + ontime_ratio_short < .005 && > late_ratio_long + ontime_ratio_long < .01 && > early_ratio_short > .8) .. add something that multiplies...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...(int step_size) { JitterBuffer *jitter = (JitterBuffer*)speex_alloc(sizeof(JitterBuffer)); if (jitter) @@ -294,7 +294,7 @@ } /** Reset jitter buffer */ -void jitter_buffer_reset(JitterBuffer *jitter) +EXPORT void jitter_buffer_reset(JitterBuffer *jitter) { int i; for (i=0;i<SPEEX_JITTER_MAX_BUFFER_SIZE;i++) @@ -325,7 +325,7 @@ } /** Destroy jitter buffer */ -void jitter_buffer_destroy(JitterBuffer *jitter) +EXPORT void jitter_buffer_destroy(JitterBuffer *jitter) { jitter_buffer_reset(jitter); speex_free(jitter); @@ -365,7 +365,7 @@ /** Put one packet into the jitter buffer */ -v...