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

Unified Diff: media/audio/fake_audio_output_stream.h

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Comments. Created 8 years, 3 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/fake_audio_output_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_output_stream.h
diff --git a/media/audio/fake_audio_output_stream.h b/media/audio/fake_audio_output_stream.h
index 66f15d1579f9b854377d8b4399d8461e79598ccb..f4c52e26fe29f17695afd6e6a124cbd8c2ee8edb 100644
--- a/media/audio/fake_audio_output_stream.h
+++ b/media/audio/fake_audio_output_stream.h
@@ -33,7 +33,7 @@ class MEDIA_EXPORT FakeAudioOutputStream : public AudioOutputStream {
virtual void GetVolume(double* volume) OVERRIDE;
virtual void Close() OVERRIDE;
- uint8* buffer() { return buffer_.get(); }
+ AudioBus* audio_bus() { return audio_bus_.get(); }
private:
explicit FakeAudioOutputStream(AudioManagerBase* manager,
@@ -46,8 +46,7 @@ class MEDIA_EXPORT FakeAudioOutputStream : public AudioOutputStream {
AudioManagerBase* audio_manager_;
double volume_;
AudioSourceCallback* callback_;
- scoped_array<uint8> buffer_;
- uint32 bytes_per_buffer_;
+ scoped_ptr<AudioBus> audio_bus_;
bool closed_;
DISALLOW_COPY_AND_ASSIGN(FakeAudioOutputStream);
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/fake_audio_output_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698