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

Unified Diff: media/audio/audio_parameters.h

Issue 9691001: Audio software mixer. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/audio_parameters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/audio_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698