Skip to content
Snippets Groups Projects
Commit 764a6576 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#5814: Speex initialization function uses samples, not bytes

parent cc1b41a2
Branches
Tags
No related merge requests found
...@@ -40,8 +40,8 @@ SpeexEchoCancel::SpeexEchoCancel() ...@@ -40,8 +40,8 @@ SpeexEchoCancel::SpeexEchoCancel()
_echoTailLength = echoTailLengthMs * samplingRate / 1000; _echoTailLength = echoTailLengthMs * samplingRate / 1000;
// _echoState = speex_echo_state_init (EC_FRAME_SIZE, EC_FILTER_LENGTH); // _echoState = speex_echo_state_init (EC_FRAME_SIZE, EC_FILTER_LENGTH);
_echoState = speex_echo_state_init (EC_FRAME_SIZE * sizeof(SFLDataFormat), _echoTailLength); _echoState = speex_echo_state_init (EC_FRAME_SIZE, _echoTailLength);
_preState = speex_preprocess_state_init (EC_FRAME_SIZE * sizeof(SFLDataFormat), samplingRate); _preState = speex_preprocess_state_init (EC_FRAME_SIZE, samplingRate);
_debug("EchoCancel: Initializing echo canceller with delay: %d, filter length: %d, frame size: %d and samplerate %d", _debug("EchoCancel: Initializing echo canceller with delay: %d, filter length: %d, frame size: %d and samplerate %d",
_echoDelay, _echoTailLength, EC_FRAME_SIZE, samplingRate); _echoDelay, _echoTailLength, EC_FRAME_SIZE, samplingRate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment