diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 03:07:19 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-11 03:07:19 +0000 |
commit | 9ade381f46175dead00a1cc9ffc3328230e8c982 (patch) | |
tree | 64c6caf04643408b2e25bce192f03c9b7b93eaa2 /media/audio/audio_input_controller.h | |
parent | adc19c0eeac9f3caaae4e35bd64e79e6b6e72a0f (diff) | |
download | chromium_src-9ade381f46175dead00a1cc9ffc3328230e8c982.zip chromium_src-9ade381f46175dead00a1cc9ffc3328230e8c982.tar.gz chromium_src-9ade381f46175dead00a1cc9ffc3328230e8c982.tar.bz2 |
Simplified AudioOutputStream interface.
1. Removed packet_size parameter from Open().
2. Removed OnClose() from the callback. Now the callback is guaranteed to be called only between Start() and Stop().
3. Added samples_per_packet in the AudioParameters struct.
BUG=39825
TEST=Unittests
Review URL: http://codereview.chromium.org/4661001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_input_controller.h')
-rw-r--r-- | media/audio/audio_input_controller.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/media/audio/audio_input_controller.h b/media/audio/audio_input_controller.h index f6e8d1e..cfba450b3 100644 --- a/media/audio/audio_input_controller.h +++ b/media/audio/audio_input_controller.h @@ -55,8 +55,7 @@ class AudioInputController : class Factory { public: virtual AudioInputController* Create(EventHandler* event_handler, - AudioParameters params, - int samples_per_packet) = 0; + AudioParameters params) = 0; protected: virtual ~Factory() {} @@ -70,8 +69,7 @@ class AudioInputController : // handler will receive a OnCreated() call. static scoped_refptr<AudioInputController> Create( EventHandler* event_handler, - AudioParameters params, - int samples_per_packet); // Size of the hardware buffer. + AudioParameters params); // Sets the factory used by the static method Create. AudioInputController // does not take ownership of |factory|. A value of NULL results in an @@ -110,8 +108,7 @@ class AudioInputController : AudioInputController(EventHandler* handler); // The following methods are executed on the audio controller thread. - void DoCreate(AudioParameters params, - uint32 samples_per_packet); + void DoCreate(AudioParameters params); void DoRecord(); void DoClose(); void DoReportError(int code); |