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

Unified Diff: media/filters/audio_clock.h

Issue 389613005: Update media::AudioClock API to take time since writing into account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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') | no next file with comments »
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 a0d8212f94869cd8f929d39831b64e86fb1418bc..625da7d183ee0abc032f116e1dc964b3521587e1 100644
--- a/media/filters/audio_clock.h
+++ b/media/filters/audio_clock.h
@@ -35,7 +35,11 @@ class MEDIA_EXPORT AudioClock {
// Calculates the current media timestamp taking silence and changes in
// playback rate into account.
- base::TimeDelta CurrentMediaTimestamp() const;
+ //
+ // Clients can provide |time_since_writing| to simulate the passage of time
DaleCurtis 2014/07/15 18:13:15 Hmm, I don't quite understand how you're going to
+ // since last writing audio to get a more accurate current media timestamp.
+ base::TimeDelta CurrentMediaTimestamp(
+ base::TimeDelta time_since_writing) const;
// Returns the last endpoint timestamp provided to WroteAudio().
base::TimeDelta last_endpoint_timestamp() const {
« no previous file with comments | « no previous file | media/filters/audio_clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698