Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.cc

Issue 1410833002: Lock scheme #4: Introduced the render sample queue for the aec and aecm (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@aec_error_report_CL
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f3ee0a399d54eaefad5020a550816051c421d0eb..bfe24c52a941c7b317db6fa1c28e7f68c07cbc6b 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -529,6 +529,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;
@@ -570,6 +573,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;
}

Powered by Google App Engine
This is Rietveld 408576698