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

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

Issue 2699113002: Register APM even though echo cancellation is disabled. (Closed)
Patch Set: 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 | « no previous file | no next file » | 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..b78d7d57a0dbf1eddb73a1f0ce4c994c15303be0 100644
--- a/content/renderer/media/media_stream_audio_processor.cc
+++ b/content/renderer/media/media_stream_audio_processor.cc
@@ -667,12 +667,13 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule(
// Enable the audio processing components.
webrtc::AudioProcessing::Config apm_config;
+ if (playout_data_source_) {
+ playout_data_source_->AddPlayoutSink(this);
+ }
+
if (echo_cancellation) {
EnableEchoCancellation(audio_processing_.get());
- if (playout_data_source_)
- playout_data_source_->AddPlayoutSink(this);
-
// Prepare for logging echo information. If there are data remaining in
// |echo_information_| we simply discard it.
echo_information_.reset(new EchoInformation());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698