AEC3: Add signal dependent mixing before alignment

This CL adds code for doing signal-dependent downmixing
before the delay estimation in the multichannel case.

As part of the CL, the unittests of the render delay
controller are corrected. However, as that caused some of
them to fail, the CL (for now) as well disables the failing
test.

Bug: webrtc:11153,chromium:1029740, webrtc:11161
Change-Id: I0b765c28fa5e547aabd6dfbd24b626ff9a16346f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161045
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29980}
This commit is contained in:
Per Åhgren
2019-12-03 11:24:59 +01:00
committed by Commit Bot
parent 3a77f93589
commit 6a05bb1b12
19 changed files with 610 additions and 91 deletions

View File

@ -25,7 +25,8 @@ namespace webrtc {
class RenderDelayController {
public:
static RenderDelayController* Create(const EchoCanceller3Config& config,
int sample_rate_hz);
int sample_rate_hz,
size_t num_capture_channels);
virtual ~RenderDelayController() = default;
// Resets the delay controller. If the delay confidence is reset, the reset