Corrected the number of channels used when AEC3 is run on stereo input.
BUG=chromium:722343, webrtc:7519
Review-Url: https://codereview.webrtc.org/2883933003
Cr-Commit-Position: refs/heads/master@{#18158}
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc
index ea38923..900a8ec 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -728,7 +728,10 @@
size_t AudioProcessingImpl::num_proc_channels() const {
// Used as callback from submodules, hence locking is not allowed.
- return capture_nonlocked_.beamformer_enabled ? 1 : num_output_channels();
+ return (capture_nonlocked_.beamformer_enabled ||
+ capture_nonlocked_.echo_canceller3_enabled)
+ ? 1
+ : num_output_channels();
}
size_t AudioProcessingImpl::num_output_channels() const {