diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 18:26:28 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 18:26:28 +0000 |
commit | 8dcf85af327954dccfe522f6e6d6fc66a7f24e68 (patch) | |
tree | def5b4085f292f2e8955d50ca92e96777b522d80 /media/audio/audio_output.h | |
parent | 3e6058b3cfe2fbc401d4abb1c3ac7c16fc48bda3 (diff) | |
download | chromium_src-8dcf85af327954dccfe522f6e6d6fc66a7f24e68.zip chromium_src-8dcf85af327954dccfe522f6e6d6fc66a7f24e68.tar.gz chromium_src-8dcf85af327954dccfe522f6e6d6fc66a7f24e68.tar.bz2 |
Revert r16622
TBR=ajwong
Review URL: http://codereview.chromium.org/115641
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_output.h')
-rw-r--r-- | media/audio/audio_output.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/media/audio/audio_output.h b/media/audio/audio_output.h index 4793e71..289b2af 100644 --- a/media/audio/audio_output.h +++ b/media/audio/audio_output.h @@ -43,11 +43,9 @@ class AudioOutputStream { public: enum State { STATE_CREATED = 0, // The output stream is created. - STATE_OPENED, // The output stream is opened. STATE_STARTED, // The output stream is started. STATE_PAUSED, // The output stream is paused. STATE_STOPPED, // The output stream is stopped. - STATE_CLOSING, // The output stream is being closed. STATE_CLOSED, // The output stream is closed. STATE_ERROR, // The output stream is in error state. }; @@ -84,9 +82,6 @@ class AudioOutputStream { // two buffers of |packet_size| size are created, one will be locked for // playback and one will be ready to be filled in the call to // AudioSourceCallback::OnMoreData(). - // - // TODO(ajwong): Streams are not reusable, so try to move packet_size into the - // constructor. virtual bool Open(size_t packet_size) = 0; // Starts playing audio and generating AudioSourceCallback::OnMoreData(). @@ -94,11 +89,9 @@ class AudioOutputStream { // after calling this method initial buffers are fetched. User of this // object should prepare |AudioOutputStream::GetNumBuffers()| before calling // AudioOutputStream::Start(). - // - // The output stream does not take ownership of this callback. virtual void Start(AudioSourceCallback* callback) = 0; - // Stops playing audio. Effect might not be instantaneous as the hardware + // Stops playing audio. Effect might no be instantaneous as the hardware // might have locked audio data that is processing. virtual void Stop() = 0; |