diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 23:18:48 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-31 23:18:48 +0000 |
commit | 2f6d086da79c737bc2a0ee3023ca80c608c75d19 (patch) | |
tree | 6943204cb1c9c7d7cbe722f91a64a1c326601fef /media/audio/audio_input_controller.h | |
parent | 87949cc2b85979964ca9de9483ba1ba2758e0b81 (diff) | |
download | chromium_src-2f6d086da79c737bc2a0ee3023ca80c608c75d19.zip chromium_src-2f6d086da79c737bc2a0ee3023ca80c608c75d19.tar.gz chromium_src-2f6d086da79c737bc2a0ee3023ca80c608c75d19.tar.bz2 |
Add AudioParameters struct. Use it everywhere.
BUG=None
TEST=unittests
Review URL: http://codereview.chromium.org/3226012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_input_controller.h')
-rw-r--r-- | media/audio/audio_input_controller.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h index deded58..f6e8d1e 100644 --- a/media/audio/audio_input_controller.h +++ b/media/audio/audio_input_controller.h @@ -55,10 +55,7 @@ class AudioInputController : class Factory { public: virtual AudioInputController* Create(EventHandler* event_handler, - AudioManager::Format format, - int channels, - int sample_rate, - int bits_per_sample, + AudioParameters params, int samples_per_packet) = 0; protected: @@ -73,10 +70,7 @@ class AudioInputController : // handler will receive a OnCreated() call. static scoped_refptr<AudioInputController> Create( EventHandler* event_handler, - AudioManager::Format format, // Format of the stream. - int channels, // Number of channels. - int sample_rate, // Sampling frequency/rate. - int bits_per_sample, // Number of bits per sample. + AudioParameters params, int samples_per_packet); // Size of the hardware buffer. // Sets the factory used by the static method Create. AudioInputController @@ -116,8 +110,7 @@ class AudioInputController : AudioInputController(EventHandler* handler); // The following methods are executed on the audio controller thread. - void DoCreate(AudioManager::Format format, int channels, - int sample_rate, int bits_per_sample, + void DoCreate(AudioParameters params, uint32 samples_per_packet); void DoRecord(); void DoClose(); |