Chromium Code Reviews| Index: media/base/audio_block_fifo.h |
| diff --git a/media/base/audio_block_fifo.h b/media/base/audio_block_fifo.h |
| index fdb5cef6225664dc81974a30764c1bee983813c4..bada00d69d2beec3f0bb3f09d2dec9dd268c6f88 100644 |
| --- a/media/base/audio_block_fifo.h |
| +++ b/media/base/audio_block_fifo.h |
| @@ -28,6 +28,8 @@ class MEDIA_EXPORT AudioBlockFifo { |
| // Push() will crash if the allocated space is insufficient. |
| void Push(const void* source, int frames, int bytes_per_sample); |
|
DaleCurtis
2014/08/26 18:51:55
Add comment?
|
| + void Push(const AudioBus* source); |
| + |
| // Consumes a block of audio from the FIFO. Returns an AudioBus which |
| // contains the consumed audio data to avoid copying. |
| // Consume() will crash if the FIFO does not contain a block of data. |
| @@ -46,6 +48,9 @@ class MEDIA_EXPORT AudioBlockFifo { |
| int GetUnfilledFrames() const; |
| private: |
| + // Helper method to update the indexes in Push methods. |
| + void UpdatePosition(int push_frames); |
| + |
| // The actual FIFO is a vector of audio buses. |
| ScopedVector<AudioBus> audio_blocks_; |