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

Unified Diff: media/filters/audio_renderer_algorithm_base.h

Issue 8763010: Replace AudioDecoder::ProduceAudioSamples/ConsumeAudioSamples with read callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 years 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/filters/audio_renderer_algorithm_base.h
diff --git a/media/filters/audio_renderer_algorithm_base.h b/media/filters/audio_renderer_algorithm_base.h
index af6381d746640988d33ba817b86b36fcc1e26b94..d2a982d2b4ffc9995f5167c880e8d7e6fed5deaa 100644
--- a/media/filters/audio_renderer_algorithm_base.h
+++ b/media/filters/audio_renderer_algorithm_base.h
@@ -69,12 +69,17 @@ class MEDIA_EXPORT AudioRendererAlgorithmBase {
// Returns whether |queue_| is empty.
virtual bool IsQueueEmpty();
- // Returns true if we have enough data
+ // Returns true if we have enough data.
virtual bool IsQueueFull();
- // Returns the number of bytes left in |queue_|.
+ // Returns the number of bytes left in |queue_|, which may be larger than
+ // QueueCapacity() in the event that a read callback delivered more data than
+ // |queue_| was intending to hold.
virtual uint32 QueueSize();
+ // Returns the capacity of |queue_|.
+ virtual uint32 QueueCapacity();
+
// Increase the capacity of |queue_| if possible.
virtual void IncreaseQueueCapacity();

Powered by Google App Engine
This is Rietveld 408576698