diff options
author | hclam@google.com <hclam@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 00:06:17 +0000 |
---|---|---|
committer | hclam@google.com <hclam@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 00:06:17 +0000 |
commit | dff80f15dca03378e052f725a6dbff46f4649249 (patch) | |
tree | 8b87e546774f6ff053bf590fe440e653314adce7 /media/audio/audio_output.h | |
parent | ee01535e43949832b8fb57a74d892390e01d36dd (diff) | |
download | chromium_src-dff80f15dca03378e052f725a6dbff46f4649249.zip chromium_src-dff80f15dca03378e052f725a6dbff46f4649249.tar.gz chromium_src-dff80f15dca03378e052f725a6dbff46f4649249.tar.bz2 |
Refactoring to share MockAudioOutputStream implementations across 3 platforms
Re-trying the previous CL. The last change got reverted because of valgrind
failure.
TBR=scherkus
Original CL: http://codereview.chromium.org/155471
Review URL: http://codereview.chromium.org/159167
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_output.h')
-rw-r--r-- | media/audio/audio_output.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/media/audio/audio_output.h b/media/audio/audio_output.h index 4793e71..a12742e 100644 --- a/media/audio/audio_output.h +++ b/media/audio/audio_output.h @@ -91,9 +91,7 @@ class AudioOutputStream { // Starts playing audio and generating AudioSourceCallback::OnMoreData(). // Since implementor of AudioOutputStream may have internal buffers, right - // after calling this method initial buffers are fetched. User of this - // object should prepare |AudioOutputStream::GetNumBuffers()| before calling - // AudioOutputStream::Start(). + // after calling this method initial buffers are fetched. // // The output stream does not take ownership of this callback. virtual void Start(AudioSourceCallback* callback) = 0; @@ -114,11 +112,6 @@ class AudioOutputStream { // After calling this method, the object should not be used anymore. virtual void Close() = 0; - // Gets the number of internal buffers used in this output stream. This - // method is useful for providing information about how user of this object - // should prepare initial buffers before calling AudioOutputStream::Start(). - virtual size_t GetNumBuffers() = 0; - protected: virtual ~AudioOutputStream() {} }; @@ -164,11 +157,6 @@ class AudioManager { virtual void MuteAll() = 0; virtual void UnMuteAll() = 0; - // For testing purposes only. Returns the internal buffer of the last - // AUDIO_MOCK AudioOutputStream closed. Returns NULL if none closed yet. - // The buffer size is the same as passed to AudioOutputStream::Open(). - virtual const void* GetLastMockBuffer() = 0; - // Get AudioManager singleton. // TODO(cpu): Define threading requirements for interacting with AudioManager. static AudioManager* GetAudioManager(); |