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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 12387006: Pass more detailed audio hardware configuration information to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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
Index: content/renderer/render_thread_impl.cc
===================================================================
--- content/renderer/render_thread_impl.cc (revision 186233)
+++ content/renderer/render_thread_impl.cc (working copy)
@@ -916,18 +916,13 @@
media::AudioHardwareConfig* RenderThreadImpl::GetAudioHardwareConfig() {
if (!audio_hardware_config_) {
- int output_buffer_size;
- int output_sample_rate;
- int input_sample_rate;
- media::ChannelLayout input_channel_layout;
-
+ media::AudioParameters input_params;
+ media::AudioParameters output_params;
Send(new ViewHostMsg_GetAudioHardwareConfig(
- &output_buffer_size, &output_sample_rate,
- &input_sample_rate, &input_channel_layout));
+ &input_params, &output_params));
audio_hardware_config_.reset(new media::AudioHardwareConfig(
- output_buffer_size, output_sample_rate, input_sample_rate,
- input_channel_layout));
+ input_params, output_params));
audio_message_filter_->SetAudioHardwareConfig(audio_hardware_config_.get());
}

Powered by Google App Engine
This is Rietveld 408576698