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

Unified Diff: media/audio/audio_parameters.h

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: media/audio/audio_parameters.h
===================================================================
--- media/audio/audio_parameters.h (revision 187053)
+++ media/audio/audio_parameters.h (working copy)
@@ -51,7 +51,7 @@
int sample_rate, int bits_per_sample,
int frames_per_buffer);
void Reset(Format format, ChannelLayout channel_layout,
- int input_channels,
+ int channels, int input_channels,
int sample_rate, int bits_per_sample,
int frames_per_buffer);
@@ -76,6 +76,9 @@
int channels() const { return channels_; }
int input_channels() const { return input_channels_; }
+ // Set to CHANNEL_LAYOUT_DISCRETE with given number of channels.
+ void SetDiscreteChannels(int channels);
+
private:
Format format_; // Format of the stream.
ChannelLayout channel_layout_; // Order of surround sound channels.

Powered by Google App Engine
This is Rietveld 408576698