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

Unified Diff: content/renderer/render_thread_impl.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
Index: content/renderer/render_thread_impl.cc
===================================================================
--- content/renderer/render_thread_impl.cc (revision 189875)
+++ content/renderer/render_thread_impl.cc (working copy)
@@ -980,13 +980,18 @@
media::AudioHardwareConfig* RenderThreadImpl::GetAudioHardwareConfig() {
if (!audio_hardware_config_) {
- media::AudioParameters input_params;
- media::AudioParameters output_params;
+ int output_buffer_size;
+ int output_sample_rate;
+ int input_sample_rate;
+ media::ChannelLayout input_channel_layout;
+
Send(new ViewHostMsg_GetAudioHardwareConfig(
- &input_params, &output_params));
+ &output_buffer_size, &output_sample_rate,
+ &input_sample_rate, &input_channel_layout));
audio_hardware_config_.reset(new media::AudioHardwareConfig(
- input_params, output_params));
+ output_buffer_size, output_sample_rate, input_sample_rate,
+ input_channel_layout));
audio_message_filter_->SetAudioHardwareConfig(audio_hardware_config_.get());
}
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_input_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698