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

Unified Diff: media/filters/audio_renderer_impl.h

Issue 256163005: Introduce AudioClock to improve playback delay calculations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix eos Created 6 years, 8 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
« no previous file with comments | « media/filters/audio_clock_unittest.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl.h
diff --git a/media/filters/audio_renderer_impl.h b/media/filters/audio_renderer_impl.h
index f6f41f1ea5b3ec741a7706ce860f98f9bc51a4be..4e8ad018252c6983e07bade839b269b46d417cbc 100644
--- a/media/filters/audio_renderer_impl.h
+++ b/media/filters/audio_renderer_impl.h
@@ -37,11 +37,12 @@ class SingleThreadTaskRunner;
namespace media {
-class AudioBus;
class AudioBufferConverter;
+class AudioBus;
+class AudioClock;
+class AudioHardwareConfig;
class AudioSplicer;
class DecryptingDemuxerStream;
-class AudioHardwareConfig;
class MEDIA_EXPORT AudioRendererImpl
: public AudioRenderer,
@@ -246,10 +247,7 @@ class MEDIA_EXPORT AudioRendererImpl
bool received_end_of_stream_;
bool rendered_end_of_stream_;
- // The timestamp of the last frame (i.e. furthest in the future) buffered as
- // well as the current time that takes current playback delay into account.
- base::TimeDelta audio_time_buffered_;
- base::TimeDelta current_time_;
+ scoped_ptr<AudioClock> audio_clock_;
base::TimeDelta preroll_timestamp_;
« no previous file with comments | « media/filters/audio_clock_unittest.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698