Index: media/base/audio_renderer.h |
diff --git a/media/base/audio_renderer.h b/media/base/audio_renderer.h |
index 733daa65d7a53e076ad613b8b5977f56c2e8b934..3e7131c683b9c0ba55853b66fcda09a401090cf8 100644 |
--- a/media/base/audio_renderer.h |
+++ b/media/base/audio_renderer.h |
@@ -18,6 +18,10 @@ |
class MEDIA_EXPORT AudioRenderer { |
public: |
+ // First parameter is the current time that has been rendered. |
+ // Second parameter is the maximum time value that the clock cannot exceed. |
+ typedef base::Callback<void(base::TimeDelta, base::TimeDelta)> TimeCB; |
+ |
AudioRenderer(); |
// Stop all operations and fire all pending callbacks. |
@@ -28,6 +32,8 @@ |
// |
// |statistics_cb| is executed periodically with audio rendering stats. |
// |
+ // |time_cb| is executed whenever time has advanced by way of audio rendering. |
+ // |
// |buffering_state_cb| is executed when audio rendering has either run out of |
// data or has enough data to continue playback. |
// |
@@ -37,6 +43,7 @@ |
virtual void Initialize(DemuxerStream* stream, |
const PipelineStatusCB& init_cb, |
const StatisticsCB& statistics_cb, |
+ const TimeCB& time_cb, |
const BufferingStateCB& buffering_state_cb, |
const base::Closure& ended_cb, |
const PipelineStatusCB& error_cb) = 0; |