Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echo_frame should be initialized as frame #2

Open
matlab2000 opened this issue Nov 29, 2017 · 0 comments
Open

echo_frame should be initialized as frame #2

matlab2000 opened this issue Nov 29, 2017 · 0 comments

Comments

@matlab2000
Copy link

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant