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

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: fix mac tests 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
« no previous file with comments | « media/base/mock_filters.h ('k') | media/filters/audio_renderer_algorithm_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c6888c26f71388a3913b5727c958aba4b379ce25..6ea8db59f7a060af8d68f243eb50fe890ff2429d 100644
--- a/media/filters/audio_renderer_algorithm_base.h
+++ b/media/filters/audio_renderer_algorithm_base.h
@@ -71,9 +71,14 @@ class MEDIA_EXPORT AudioRendererAlgorithmBase {
// Returns true if we have enough data
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.
uint32 QueueSize();
+ // Returns the capacity of |queue_|.
+ uint32 QueueCapacity();
+
// Increase the capacity of |queue_| if possible.
void IncreaseQueueCapacity();
« no previous file with comments | « media/base/mock_filters.h ('k') | media/filters/audio_renderer_algorithm_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698