Commit 764a6576 authored by Alexandre Savard's avatar Alexandre Savard

#5814: Speex initialization function uses samples, not bytes

parent cc1b41a2
......@@ -40,8 +40,8 @@ SpeexEchoCancel::SpeexEchoCancel()
_echoTailLength = echoTailLengthMs * samplingRate / 1000;
// _echoState = speex_echo_state_init (EC_FRAME_SIZE, EC_FILTER_LENGTH);
_echoState = speex_echo_state_init (EC_FRAME_SIZE * sizeof(SFLDataFormat), _echoTailLength);
_preState = speex_preprocess_state_init (EC_FRAME_SIZE * sizeof(SFLDataFormat), samplingRate);
_echoState = speex_echo_state_init (EC_FRAME_SIZE, _echoTailLength);
_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",
_echoDelay, _echoTailLength, EC_FRAME_SIZE, samplingRate);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment