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

Unified Diff: media/filters/audio_clock.h

Issue 591603003: Introduce media::AudioClock::WallTimeForTimestamp(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « no previous file | media/filters/audio_clock.cc » ('j') | media/filters/audio_clock_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_clock.h
diff --git a/media/filters/audio_clock.h b/media/filters/audio_clock.h
index 33c13d23fa390253c5b81feb9a8e8cb529f348f1..6472f11319e25aca07e6873392108497816303ec 100644
--- a/media/filters/audio_clock.h
+++ b/media/filters/audio_clock.h
@@ -84,6 +84,12 @@ class MEDIA_EXPORT AudioClock {
base::TimeDelta TimestampSinceWriting(
base::TimeDelta time_since_writing) const;
+ // Returns the amount of wall time until |timestamp| will be played by the
+ // audio hardware.
+ //
+ // |timestamp| must be within front_timestamp() and back_timestamp().
+ base::TimeDelta TimeUntilPlayback(base::TimeDelta timestamp) const;
+
// Returns the amount of contiguous media time buffered at the head of the
// audio hardware buffer. Silence introduced into the audio hardware buffer is
// treated as a break in media time.
« no previous file with comments | « no previous file | media/filters/audio_clock.cc » ('j') | media/filters/audio_clock_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698