search for: play_buf

Displaying 4 results from an estimated 4 matches for "play_buf".

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 somet...
2009 Mar 10
2
frame_size parameter
...0 ms on mono 8khz 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
...s '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 > >...
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?