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

Unified Diff: webrtc/modules/audio_processing/echo_control_mobile_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_control_mobile_impl.cc
diff --git a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc
index 2d5ba35c3487138f562d6f05b05ccd3c2a5b3279..97f69974dbadd58e3864e3619d204847c3bfbec7 100644
--- a/webrtc/modules/audio_processing/echo_control_mobile_impl.cc
+++ b/webrtc/modules/audio_processing/echo_control_mobile_impl.cc
@@ -278,6 +278,12 @@ int EchoControlMobileImpl::Enable(bool enable) {
return AudioProcessing::kNoError;
}
+bool EchoControlMobileImpl::is_enabled_render_side_query() const {
+ // TODO(peah): Add threadchecker.
+ rtc::CritScope cs_render(crit_render_);
+ return enabled_;
+}
+
bool EchoControlMobileImpl::is_enabled() const {
rtc::CritScope cs(crit_capture_);
return enabled_;
« no previous file with comments | « webrtc/modules/audio_processing/echo_control_mobile_impl.h ('k') | webrtc/modules/audio_processing/gain_control_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698