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

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

Issue 12662038: Revert 187936 "Pass more detailed audio hardware configuration i..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1440/src/
Patch Set: Created 7 years, 9 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/common/view_messages.h ('k') | content/renderer/media/audio_renderer_mixer_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_message_filter.cc
===================================================================
--- content/renderer/media/audio_message_filter.cc (revision 189875)
+++ content/renderer/media/audio_message_filter.cc (working copy)
@@ -172,22 +172,7 @@
if (!audio_hardware_config_)
return;
- // TODO(crogers): fix OnOutputDeviceChanged() to pass AudioParameters.
- media::ChannelLayout channel_layout =
- audio_hardware_config_->GetOutputChannelLayout();
- int channels = audio_hardware_config_->GetOutputChannels();
-
- media::AudioParameters output_params;
- output_params.Reset(
- media::AudioParameters::AUDIO_PCM_LOW_LATENCY,
- channel_layout,
- channels,
- 0,
- new_sample_rate,
- 16,
- new_buffer_size);
-
- audio_hardware_config_->UpdateOutputConfig(output_params);
+ audio_hardware_config_->UpdateOutputConfig(new_buffer_size, new_sample_rate);
}
void AudioMessageFilter::SetAudioHardwareConfig(
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/media/audio_renderer_mixer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698