Commit fb1b1df3 authored by Tristan Matthews's avatar Tristan Matthews

* #9782: initialize all member vars in constructor

parent bb333d8e
......@@ -43,10 +43,14 @@ SpeexEchoCancel::SpeexEchoCancel() :
preState_(speex_preprocess_state_init(EC_FRAME_SIZE, SPEEX_SAMPLE_RATE)),
micData_(RINGBUFFER_SIZE),
spkrData_(RINGBUFFER_SIZE),
spkrStopped_(true)
spkrStopped_(true),
tmpSpkr_(),
tmpMic_(),
tmpOut_()
{
DEBUG("EchoCancel: Initializing echo canceller with delay: %d, filter length: %d, frame size: %d and samplerate %d",
echoDelay_, echoTailLength_, EC_FRAME_SIZE, SPEEX_SAMPLE_RATE);
DEBUG("EchoCancel: Initializing echo canceller with delay: %d, filter "
"length: %d, frame size: %d and samplerate %d", echoDelay_,
echoTailLength_, EC_FRAME_SIZE, SPEEX_SAMPLE_RATE);
int rate = SPEEX_SAMPLE_RATE;
speex_echo_ctl(echoState_, SPEEX_ECHO_SET_SAMPLING_RATE, &rate);
......
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