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

Side by Side Diff: media/base/clock.h

Issue 165163: Merge 21882 - Implemented a proper clock for audio/video synchronization.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | media/base/clock_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
Merged /trunk/src/media/base/clock.h:r21882
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A clock represent a single source of time to allow audio and video streams 5 // A clock represent a single source of time to allow audio and video streams
6 // to synchronize with each other. Clocks essentially track the media time with 6 // to synchronize with each other. Clocks essentially track the media time with
7 // respect to some other source of time, whether that may be the system clock, 7 // respect to some other source of time, whether that may be the system clock,
8 // audio hardware or some other OS-level API. 8 // audio hardware or some other OS-level API.
9 // 9 //
10 // Clocks start off paused with a playback rate of 1.0f and a media time of 0. 10 // Clocks start off paused with a playback rate of 1.0f and a media time of 0.
(...skipping 27 matching lines...) Expand all
38 // where a discontinuity in the media is found (i.e., seeking). 38 // where a discontinuity in the media is found (i.e., seeking).
39 virtual void SetTime(const base::TimeDelta& time) = 0; 39 virtual void SetTime(const base::TimeDelta& time) = 0;
40 40
41 // Returns the current elapsed media time. 41 // Returns the current elapsed media time.
42 virtual base::TimeDelta Elapsed() const = 0; 42 virtual base::TimeDelta Elapsed() const = 0;
43 }; 43 };
44 44
45 } // namespace media 45 } // namespace media
46 46
47 #endif // MEDIA_BASE_CLOCK_H_ 47 #endif // MEDIA_BASE_CLOCK_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/clock_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698