AEC3: Downmix multichannel signals before delay estimation

Multichannel signals are downmixed to mono before decimation and
delay estimation. This is useful when not all channels play
audio content. The feature can be toggled in the AEC3 configuration.

Bug: webrtc:10913
Change-Id: I7d40edf7732bb51fec69e7f3ca063d821c5069c4
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/151762
Commit-Queue: Gustaf Ullberg <gustaf@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29126}
This commit is contained in:
Gustaf Ullberg
2019-09-10 09:36:43 +02:00
committed by Commit Bot
parent d181ee798d
commit ee84d39fce
15 changed files with 89 additions and 55 deletions

View File

@ -165,7 +165,7 @@ void BlockProcessorImpl::ProcessCapture(
// alignment.
estimated_delay_ = delay_controller_->GetDelay(
render_buffer_->GetDownsampledRenderBuffer(), render_buffer_->Delay(),
(*capture_block)[0][0]);
(*capture_block)[0]);
if (estimated_delay_) {
bool delay_change =