Index: media/audio/audio_parameters.h |
=================================================================== |
--- media/audio/audio_parameters.h (revision 128216) |
+++ media/audio/audio_parameters.h (working copy) |
@@ -32,11 +32,17 @@ |
static const uint32 kAudioDATSampleRate = 48000; |
AudioParameters(); |
- AudioParameters(Format format, ChannelLayout channel_layout, |
- int sample_rate, int bits_per_sample, |
+ AudioParameters(Format format, |
+ bool use_browser_mixer, |
scherkus (not reviewing)
2012/03/27 14:34:19
Is the only reason to have programmatic control ov
enal1
2012/03/27 15:12:01
yes, not having that flag is very lukrative sugges
scherkus (not reviewing)
2012/03/27 15:17:06
They are arguments that aren't based on any real w
enal1
2012/03/27 15:34:08
Arguments are "my code right now works reasonable,
|
+ ChannelLayout channel_layout, |
+ int sample_rate, |
+ int bits_per_sample, |
int frames_per_buffer); |
- void Reset(Format format, ChannelLayout channel_layout, |
- int sample_rate, int bits_per_sample, |
+ void Reset(Format format, |
+ bool use_browser_mixer, |
+ ChannelLayout channel_layout, |
+ int sample_rate, |
+ int bits_per_sample, |
int frames_per_buffer); |
// Checks that all values are in the expected range. All limits are specified |
@@ -58,9 +64,12 @@ |
int bits_per_sample() const { return bits_per_sample_; } |
int frames_per_buffer() const { return frames_per_buffer_; } |
int channels() const { return channels_; } |
+ bool use_browser_mixer() const { return use_browser_mixer_; } |
private: |
Format format_; // Format of the stream. |
+ bool use_browser_mixer_; // Should we use browser-side or operating |
+ // system audio mixer. |
ChannelLayout channel_layout_; // Order of surround sound channels. |
int sample_rate_; // Sampling frequency/rate. |
int bits_per_sample_; // Number of bits per sample. |