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

Unified Diff: media/base/audio_fifo.h

Issue 389623002: Add a block based Audio FIFO. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/base/audio_fifo.h
diff --git a/media/base/audio_fifo.h b/media/base/audio_fifo.h
index c00dd40fef9c99b202e18c35cbce7d09b69e4eea..154fd315f483d39f44603aded84ec95d0899f200 100644
--- a/media/base/audio_fifo.h
+++ b/media/base/audio_fifo.h
@@ -21,6 +21,10 @@ class MEDIA_EXPORT AudioFifo {
AudioFifo(int channels, int frames);
virtual ~AudioFifo();
+ static void GetSizes(int pos, int max_size, int in_size, int* size,
+ int* wrap_size);
+ static int UpdatePos(int pos, int step, int max_size);
+
// Pushes all audio channel data from |source| to the FIFO.
// Push() will crash if the allocated space is insufficient.
void Push(const AudioBus* source);

Powered by Google App Engine
This is Rietveld 408576698