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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user