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 668ec11e91da4165a2fe5815907296d10f7ad213..0daaf1f449d08ff5648d2c8f894587561ec26d79 100644 |
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc |
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc |
@@ -530,6 +530,9 @@ int AudioProcessingImpl::ProcessStream(const float* const* src, |
return kNullPointerError; |
} |
+ echo_cancellation_->ReadQueuedRenderData(); |
+ echo_control_mobile_->ReadQueuedRenderData(); |
+ |
ProcessingConfig processing_config = api_format_; |
processing_config.input_stream() = input_config; |
processing_config.output_stream() = output_config; |
@@ -571,6 +574,9 @@ int AudioProcessingImpl::ProcessStream(const float* const* src, |
int AudioProcessingImpl::ProcessStream(AudioFrame* frame) { |
CriticalSectionScoped crit_scoped(crit_); |
+ echo_cancellation_->ReadQueuedRenderData(); |
+ echo_control_mobile_->ReadQueuedRenderData(); |
+ |
if (!frame) { |
return kNullPointerError; |
} |