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

Unified Diff: media/audio/mac/audio_output_mac.h

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review ready. Created 8 years, 4 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
Index: media/audio/mac/audio_output_mac.h
diff --git a/media/audio/mac/audio_output_mac.h b/media/audio/mac/audio_output_mac.h
index a7635df10645fb71300ea4445ef52558d4ace30f..2696979b020a019c931b3a06c564ef1f28f9bc77 100644
--- a/media/audio/mac/audio_output_mac.h
+++ b/media/audio/mac/audio_output_mac.h
@@ -105,6 +105,10 @@ class PCMQueueOutAudioOutputStream : public AudioOutputStream {
// signal "stop completed" from the last buffer's callback.
int num_buffers_left_;
+ // Container for retrieving data from AudioSourceCallback::OnMoreData().
+ scoped_ptr<AudioBus> audio_bus_;
+ base::Lock audio_bus_lock_;
Chris Rogers 2012/08/24 20:20:26 I don't think the lock is needed.
+
DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream);
};

Powered by Google App Engine
This is Rietveld 408576698