Several subcomponents inside APM copy render audio from

the render side to the capture side using the same
pattern. Currently this is done independently for the
submodules.

This CL moves the the AECM functionality for this into
APM.

BUG=webrtc:5298, webrtc:6540

Review-Url: https://codereview.webrtc.org/2444793005
Cr-Commit-Position: refs/heads/master@{#14768}
This commit is contained in:
peah
2016-10-25 04:45:24 -07:00
committed by Commit bot
parent 67c8bc4bf2
commit a062460a68
5 changed files with 140 additions and 149 deletions

View File

@ -45,8 +45,12 @@ void ProcessOneFrame(int sample_rate_hz,
capture_audio_buffer->SplitIntoFrequencyBands();
}
echo_control_mobile->ProcessRenderAudio(render_audio_buffer);
echo_control_mobile->ReadQueuedRenderData();
std::vector<int16_t> render_audio;
EchoControlMobileImpl::PackRenderAudioBuffer(
render_audio_buffer, 1, render_audio_buffer->num_channels(),
&render_audio);
echo_control_mobile->ProcessRenderAudio(render_audio);
echo_control_mobile->ProcessCaptureAudio(capture_audio_buffer,
stream_delay_ms);