Displaying 1 result from an estimated 1 matches for "hookcomingsound".
2009 Feb 13
0
Why speex echo cancellation is not work
...*ref_fd, *e_fd;
short echo_buf[SPEEX_NN], ref_buf[SPEEX_NN], e_buf[SPEEX_NN];
SpeexEchoState *st;
SpeexPreprocessState *den;
char* inputBuf;
~AECHandler(void){
speex_echo_state_destroy(this->st);
speex_preprocess_state_destroy(this->den);
}
void HookComingSound(char* buf){
speex_echo_playback(this->st,(spx_int16_t*)buf);
}
void HookOutingSound(char* origin, char* &outbuf){
speex_echo_capture(this->st,(spx_int16_t*)origin,(spx_int16_t*)outbuf);
speex_preprocess_run(this->den,(spx_int16_t*)outbuf);
}
};
-----...