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

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

Issue 1859243002: Added a query function for whether submodules are enabled (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: "Rebase with latest master" Created 4 years, 8 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/echo_cancellation_impl.cc
diff --git a/webrtc/modules/audio_processing/echo_cancellation_impl.cc b/webrtc/modules/audio_processing/echo_cancellation_impl.cc
index a323736a56d32b8e0aed436a3d0d9c2cf12bbda1..168391145f7854cd10dff716b4a003874cce42d1 100644
--- a/webrtc/modules/audio_processing/echo_cancellation_impl.cc
+++ b/webrtc/modules/audio_processing/echo_cancellation_impl.cc
@@ -275,6 +275,12 @@ int EchoCancellationImpl::Enable(bool enable) {
return AudioProcessing::kNoError;
}
+bool EchoCancellationImpl::is_enabled_render_side_query() const {
+ // TODO(peah): Add threadchecker.
+ rtc::CritScope cs_render(crit_render_);
+ return enabled_;
+}
+
bool EchoCancellationImpl::is_enabled() const {
rtc::CritScope cs(crit_capture_);
return enabled_;
« no previous file with comments | « webrtc/modules/audio_processing/echo_cancellation_impl.h ('k') | webrtc/modules/audio_processing/echo_control_mobile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698