Index: webrtc/modules/audio_processing/audio_processing_impl.cc |
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc |
index d89cc339315c5bf6b76cda4334eff5dbe8137121..e42b540362fe3af65ac7cf20db72ba666309d9d6 100644 |
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc |
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc |
@@ -682,6 +682,7 @@ int AudioProcessingImpl::ProcessStreamLocked() { |
if (capture_nonlocked_.beamformer_enabled) { |
private_submodules_->beamformer->ProcessChunk(*ca->split_data_f(), |
ca->split_data_f()); |
+ // Discards all channels by the leftmost one. |
ca->set_num_channels(1); |
} |
@@ -722,6 +723,10 @@ int AudioProcessingImpl::ProcessStreamLocked() { |
RETURN_ON_ERR(public_submodules_->echo_control_mobile->ProcessCaptureAudio( |
ca, stream_delay_ms())); |
+ if (capture_nonlocked_.beamformer_enabled) { |
+ private_submodules_->beamformer->PostFilter(ca->split_data_f()); |
+ } |
+ |
public_submodules_->voice_detection->ProcessCaptureAudio(ca); |
if (constants_.use_experimental_agc && |