Add flag to APM to force multichannel even with AEC3
Currently, APM fakes multichannel in two ways: - With injected AECs, capture processing is only performed on the left channel. The result is copied into the other channels. - With multichannel render audio, all channels are mixed into one before analysing. This CL adds a flag to disable these behaviors, ensuring proper multichannel processing happens throughout the APM pipeline. Adds killswitches to separately disable render / capture multichannel. Additionally - AEC3 currently crashes when running with multichannel. This CL adds the missing pieces to at least have it run without triggering any DCHECKS, including making the high pass filter properly handle multichannel. Bug: webrtc:10913, webrtc:10907 Change-Id: I38795bf8f312b959fcc816a056fba2c68d4e424d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/152483 Commit-Queue: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29248}
This commit is contained in:

committed by
Commit Bot

parent
e24557f51e
commit
feee1e4c36
@ -354,9 +354,10 @@ class AudioProcessingImpl : public AudioProcessing {
|
||||
bool use_experimental_agc,
|
||||
bool use_experimental_agc_agc2_level_estimation,
|
||||
bool use_experimental_agc_agc2_digital_adaptive,
|
||||
bool use_experimental_agc_process_before_aec)
|
||||
: // Format of processing streams at input/output call sites.
|
||||
agc_startup_min_volume(agc_startup_min_volume),
|
||||
bool use_experimental_agc_process_before_aec,
|
||||
bool experimental_multi_channel_render_support,
|
||||
bool experimental_multi_channel_capture_support)
|
||||
: agc_startup_min_volume(agc_startup_min_volume),
|
||||
agc_clipped_level_min(agc_clipped_level_min),
|
||||
use_experimental_agc(use_experimental_agc),
|
||||
use_experimental_agc_agc2_level_estimation(
|
||||
@ -364,14 +365,19 @@ class AudioProcessingImpl : public AudioProcessing {
|
||||
use_experimental_agc_agc2_digital_adaptive(
|
||||
use_experimental_agc_agc2_digital_adaptive),
|
||||
use_experimental_agc_process_before_aec(
|
||||
use_experimental_agc_process_before_aec) {}
|
||||
use_experimental_agc_process_before_aec),
|
||||
experimental_multi_channel_render_support(
|
||||
experimental_multi_channel_render_support),
|
||||
experimental_multi_channel_capture_support(
|
||||
experimental_multi_channel_capture_support) {}
|
||||
int agc_startup_min_volume;
|
||||
int agc_clipped_level_min;
|
||||
bool use_experimental_agc;
|
||||
bool use_experimental_agc_agc2_level_estimation;
|
||||
bool use_experimental_agc_agc2_digital_adaptive;
|
||||
bool use_experimental_agc_process_before_aec;
|
||||
|
||||
bool experimental_multi_channel_render_support;
|
||||
bool experimental_multi_channel_capture_support;
|
||||
} constants_;
|
||||
|
||||
struct ApmCaptureState {
|
||||
|
Reference in New Issue
Block a user