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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment