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

Unified Diff: content/renderer/media/media_stream_audio_processor.cc

Issue 2677893002: Adding functionality for activating for the WebRTC EchoCanceller3 functionality in Chrome. (Closed)
Patch Set: Reverted formatting done by mistake Created 3 years, 10 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
« no previous file with comments | « content/public/common/content_features.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_audio_processor.cc
diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc
index 6f7afe612a4a9d74c9cf555243ed1840be176828..4c6f65c23799fadcaae9098f8ff346a72ee8f793 100644
--- a/content/renderer/media/media_stream_audio_processor.cc
+++ b/content/renderer/media/media_stream_audio_processor.cc
@@ -18,6 +18,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/renderer/media/media_stream_audio_processor_options.h"
#include "content/renderer/media/webrtc_audio_device_impl.h"
@@ -676,6 +677,11 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule(
// Prepare for logging echo information. If there are data remaining in
// |echo_information_| we simply discard it.
echo_information_.reset(new EchoInformation());
+
+ apm_config.echo_canceller3.enabled =
+ base::FeatureList::IsEnabled(features::kWebRtcUseEchoCanceller3);
+ } else {
+ apm_config.echo_canceller3.enabled = false;
}
if (goog_ns) {
« no previous file with comments | « content/public/common/content_features.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698