codingmath icon indicating copy to clipboard operation
codingmath copied to clipboard

echo_frame should be initialized as frame

Open matlab2000 opened this issue 8 years ago • 0 comments

there's no check for apm->ProcessReverseStream(echo_frame); actually,it will return kBadSampleRateError = -7. just treat the echo_frame like frame,initialize it and the prog will run happily. the aec module will work. webrtc::AudioFrame *echo_frame = NULL; if (is_echo_cancel) { echo_frame = new webrtc::AudioFrame(); echo_frame->num_channels_ = 1; echo_frame->sample_rate_hz_ = 16000; echo_frame->samples_per_channel_ = frame->sample_rate_hz_ * frame_step / 1000.0; }

matlab2000 avatar Nov 29 '17 11:11 matlab2000