search for: play_buf_pos

Displaying 6 results from an estimated 6 matches for "play_buf_pos".

2009 Mar 11
1
frame_size parameter
Hi Jean, Thank you for your reply. Ok... I'm gonna use 'samples per channel' everywhere I see 'samples'... but what about the 'speex_echo_playback' function ? it does the following loop: ... for (i=0;i<st->frame_size;i++) st->play_buf[st->play_buf_pos+i] = play[i]; ... So... if frame size is 'samples per channel' it will copy only half the play buffer since there are two channels interleaved (supposing the play buffer is stereo of course) I think it should take into account the number of channels, resulting in something like: ... for...
2009 Mar 10
2
frame_size parameter
...z I just pass 800 as 'frame_size', but if I switch on using stereo will I have to put 1600 samples to represent the same 100 ms? I'm looking at the code of 'speex_echo_playback' and I see the following snippet: ... for (i=0;i<st->frame_size;i++) st->play_buf[st->play_buf_pos+i] = play[i]; ... So... if my buffer is stereo and I put 800 samples as 'frame_size' the previous loop will just copy half of the 'play' buffer data (50 ms) or am I missing something ? Thanks in advance, Daniel
2009 Mar 10
0
frame_size parameter
...e', but if I switch on using stereo will I > have to put 1600 samples to represent the same 100 ms? I'm > looking at the code of 'speex_echo_playback' and I see the > following snippet: > > ... > for (i=0;i<st->frame_size;i++) > st->play_buf[st->play_buf_pos+i] = play[i]; > ... > > So... if my buffer is stereo and I put 800 samples as > 'frame_size' the previous loop will just copy half of the > 'play' buffer data (50 ms) or am I missing something ? > > Thanks in advance, > Daniel > > > > > _...
2010 May 26
1
Reseting Echo State
Hello guys, I want to make echo tail parameter in my app changeable during run-time. So my question is:f Should I use speex_echo_state_reset function for this? Just call speex_echo_state_init function with new values after that? Or perform a full de-initialization and initialize echo cancellation with new tail value? I'm also using preprocessor - does the same apply to it?
2008 Mar 29
0
GCC/ELF Visibility patch
...@@ -587,7 +587,7 @@ #endif } -void speex_echo_capture(SpeexEchoState *st, const spx_int16_t *rec, spx_int16_t *out) +EXPORT void speex_echo_capture(SpeexEchoState *st, const spx_int16_t *rec, spx_int16_t *out) { int i; /*speex_warning_int("capture with fill level ", st->play_buf_pos/st->frame_size);*/ @@ -610,7 +610,7 @@ } } -void speex_echo_playback(SpeexEchoState *st, const spx_int16_t *play) +EXPORT void speex_echo_playback(SpeexEchoState *st, const spx_int16_t *play) { /*speex_warning_int("playback with fill level ", st->play_buf_pos/st->fram...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...@@ -587,7 +587,7 @@ #endif } -void speex_echo_capture(SpeexEchoState *st, const spx_int16_t *rec, spx_int16_t *out) +EXPORT void speex_echo_capture(SpeexEchoState *st, const spx_int16_t *rec, spx_int16_t *out) { int i; /*speex_warning_int("capture with fill level ", st->play_buf_pos/st->frame_size);*/ @@ -610,7 +610,7 @@ } } -void speex_echo_playback(SpeexEchoState *st, const spx_int16_t *play) +EXPORT void speex_echo_playback(SpeexEchoState *st, const spx_int16_t *play) { /*speex_warning_int("playback with fill level ", st->play_buf_pos/st->fram...