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

Unified Diff: content/common/media/media_param_traits.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/common/media/media_param_traits.cc
===================================================================
--- content/common/media/media_param_traits.cc (revision 186233)
+++ content/common/media/media_param_traits.cc (working copy)
@@ -44,6 +44,8 @@
r->Reset(static_cast<AudioParameters::Format>(format),
static_cast<ChannelLayout>(channel_layout), input_channels,
sample_rate, bits_per_sample, frames_per_buffer);
+ if (channel_layout == media::CHANNEL_LAYOUT_UNSUPPORTED)
+ r->SetDiscreteChannels(channels);
if (!r->IsValid())
return false;
return true;

Powered by Google App Engine
This is Rietveld 408576698