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

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, 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
Index: content/renderer/render_thread_impl.cc
===================================================================
--- content/renderer/render_thread_impl.cc (revision 185058)
+++ content/renderer/render_thread_impl.cc (working copy)
@@ -915,18 +915,14 @@
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;
+ audio_hardware_config_.reset(new media::AudioHardwareConfig());
- Send(new ViewHostMsg_GetAudioHardwareConfig(
- &output_buffer_size, &output_sample_rate,
- &input_sample_rate, &input_channel_layout));
+ Send(new ViewHostMsg_GetAudioHardwareConfig(audio_hardware_config_.get()));
- audio_hardware_config_.reset(new media::AudioHardwareConfig(
- output_buffer_size, output_sample_rate, input_sample_rate,
- input_channel_layout));
+ printf("buffer_size = %d\n", audio_hardware_config_->GetOutputBufferSize());
+ printf("sample_rate = %d\n", audio_hardware_config_->GetOutputSampleRate());
+ printf("output_channels = %d\n", audio_hardware_config_->GetOutputChannels());
+
audio_message_filter_->SetAudioHardwareConfig(audio_hardware_config_.get());
}

Powered by Google App Engine
This is Rietveld 408576698