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

Unified Diff: media/base/audio_fifo.h

Issue 10918098: Introduce AudioOutputResampler for browser side resampling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: First draft! 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
Index: media/base/audio_fifo.h
diff --git a/media/base/audio_fifo.h b/media/base/audio_fifo.h
index 83680b45bd9f58a1e302024cce633201f1c1e262..79222b84d5681f9351d522097990e67e8a13e375 100644
--- a/media/base/audio_fifo.h
+++ b/media/base/audio_fifo.h
@@ -23,13 +23,13 @@ class MEDIA_EXPORT AudioFifo {
// Pushes all audio channel data from |source| to the FIFO.
// Returns false if the allocated space is not sufficient. Partial data is
// not written to the FIFO for this overflow case.
- bool Push(const AudioBus* source);
+ bool Push(const AudioBus* source, int frames);
// Consumes |frames_to_consume| audio frames from the FIFO and copies
// them to |destination|.
// Returns false if the FIFO does not contain |frames_to_consume| frames
// or if there is not sufficient space in |destination| to store the frames.
- bool Consume(AudioBus* destination, int frames_to_consume);
+ bool Consume(AudioBus* destination, int start_frame, int frames_to_consume);
// Empties the FIFO without deallocating any memory.
void Clear();

Powered by Google App Engine
This is Rietveld 408576698