summaryrefslogtreecommitdiffstats
path: root/content/renderer/media
diff options
context:
space:
mode:
authorajm@chromium.org <ajm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 22:53:51 +0000
committerajm@chromium.org <ajm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 22:53:51 +0000
commitfbb4ab124e0bb18fcaffc2e7337a311a65191a5b (patch)
treedfc105386ec8772053a36b78e1f57bf7259c5e20 /content/renderer/media
parent298c6e1bac12178deeef67080f5d94cd779bc9c8 (diff)
downloadchromium_src-fbb4ab124e0bb18fcaffc2e7337a311a65191a5b.zip
chromium_src-fbb4ab124e0bb18fcaffc2e7337a311a65191a5b.tar.gz
chromium_src-fbb4ab124e0bb18fcaffc2e7337a311a65191a5b.tar.bz2
Remove deprecated set_num_channel() API.
In preparation for this change: http://review.webrtc.org/9919004/ AudioProcessing uses mono by default, so this call isn't needed. We'll start using the new Initialize() interface in its (and set_sample_rate_hz's) place when available. TESTED=observed a difference in apprtc with audio processing constraints enabled and disabled. BUG=webrtc:2894 Review URL: https://codereview.chromium.org/246413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/media')
-rw-r--r--content/renderer/media/media_stream_audio_processor.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/content/renderer/media/media_stream_audio_processor.cc b/content/renderer/media/media_stream_audio_processor.cc
index dcd9d40..aaa1138 100644
--- a/content/renderer/media/media_stream_audio_processor.cc
+++ b/content/renderer/media/media_stream_audio_processor.cc
@@ -345,6 +345,10 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule(
// Create and configure the webrtc::AudioProcessing.
audio_processing_.reset(webrtc::AudioProcessing::Create(0));
+ // TODO(ajm): Replace with AudioProcessing::Initialize() when this rolls to
+ // Chromium: http://review.webrtc.org/9919004/
+ CHECK_EQ(0,
+ audio_processing_->set_sample_rate_hz(kAudioProcessingSampleRate));
// Enable the audio processing components.
if (enable_aec) {
@@ -375,13 +379,6 @@ void MediaStreamAudioProcessor::InitializeAudioProcessingModule(
if (enable_agc)
EnableAutomaticGainControl(audio_processing_.get());
- // Configure the audio format the audio processing is running on. This
- // has to be done after all the needed components are enabled.
- CHECK_EQ(0,
- audio_processing_->set_sample_rate_hz(kAudioProcessingSampleRate));
- CHECK_EQ(0, audio_processing_->set_num_channels(
- kAudioProcessingNumberOfChannels, kAudioProcessingNumberOfChannels));
-
RecordProcessingState(AUDIO_PROCESSING_ENABLED);
}