Index: media/base/android/media_codec_bridge.h |
diff --git a/media/base/android/media_codec_bridge.h b/media/base/android/media_codec_bridge.h |
index 045e59c7c793e6d251905dc6e1689b77f4e2a27b..99ac6e8e9994c9963f950766cac643c9182d83ed 100644 |
--- a/media/base/android/media_codec_bridge.h |
+++ b/media/base/android/media_codec_bridge.h |
@@ -238,10 +238,18 @@ class AudioCodecBridge : public MediaCodecBridge { |
int64 codec_delay_ns, int64 seek_preroll_ns, |
bool play_audio, jobject media_crypto) WARN_UNUSED_RESULT; |
- // Play the output buffer. This call must be called after |
- // DequeueOutputBuffer() and before ReleaseOutputBuffer. Returns the playback |
- // head position expressed in frames. |
- int64 PlayOutputBuffer(int index, size_t size, size_t offset); |
+ // Plays the output buffer right away or save for later playback if |postpone| |
+ // is set to true. This call must be called after DequeueOutputBuffer() and |
+ // before ReleaseOutputBuffer. The data is extracted from the output buffers |
+ // using |index|, |size| and |offset|. Returns the playback head position |
+ // expressed in frames. |
+ // When |postpone| is set to true, the next PlayOutputBuffer() should have |
+ // postpone == false, and it will play two buffers: the postponed one and |
+ // the one identified by |index|. |
+ int64 PlayOutputBuffer(int index, |
+ size_t size, |
+ size_t offset, |
+ bool postpone = false); |
// Set the volume of the audio output. |
void SetVolume(double volume); |