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}
This commit is contained in:
peah 2017-05-16 01:08:58 -07:00 committed by Commit bot
parent 4fa5be451f
commit edddac54bc

View File

@ -728,7 +728,10 @@ size_t AudioProcessingImpl::num_input_channels() const {
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 {