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

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

Issue 2305113002: Make default media::Renderer::playback_rate = 0. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef MEDIA_BASE_TIME_DELTA_INTERPOLATOR_H_ 5 #ifndef MEDIA_BASE_TIME_DELTA_INTERPOLATOR_H_
6 #define MEDIA_BASE_TIME_DELTA_INTERPOLATOR_H_ 6 #define MEDIA_BASE_TIME_DELTA_INTERPOLATOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 22 matching lines...) Expand all
33 // 33 //
34 // |tick_clock| will be queried for a new reference time value. 34 // |tick_clock| will be queried for a new reference time value.
35 base::TimeDelta StartInterpolating(); 35 base::TimeDelta StartInterpolating();
36 36
37 // Stops returning interpolated TimeDelta values. 37 // Stops returning interpolated TimeDelta values.
38 // 38 //
39 // |tick_clock| will be queried for a new reference time value. 39 // |tick_clock| will be queried for a new reference time value.
40 base::TimeDelta StopInterpolating(); 40 base::TimeDelta StopInterpolating();
41 41
42 // Sets a new rate at which to interpolate. 42 // Sets a new rate at which to interpolate.
43 // The default rate is 0.
43 // 44 //
44 // |tick_clock| will be queried for a new reference time value. 45 // |tick_clock| will be queried for a new reference time value.
45 void SetPlaybackRate(double playback_rate); 46 void SetPlaybackRate(double playback_rate);
46 47
47 // Sets the two timestamps to interpolate between at |playback_rate_|. 48 // Sets the two timestamps to interpolate between at |playback_rate_|.
48 // |upper_bound| must be greater or equal to |lower_bound|. 49 // |upper_bound| must be greater or equal to |lower_bound|.
49 // 50 //
50 // |upper_bound| is typically the media timestamp of the last audio frame 51 // |upper_bound| is typically the media timestamp of the last audio frame
51 // buffered by the audio hardware. 52 // buffered by the audio hardware.
52 void SetBounds(base::TimeDelta lower_bound, base::TimeDelta upper_bound); 53 void SetBounds(base::TimeDelta lower_bound, base::TimeDelta upper_bound);
(...skipping 20 matching lines...) Expand all
73 base::TimeTicks reference_; 74 base::TimeTicks reference_;
74 75
75 double playback_rate_; 76 double playback_rate_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(TimeDeltaInterpolator); 78 DISALLOW_COPY_AND_ASSIGN(TimeDeltaInterpolator);
78 }; 79 };
79 80
80 } // namespace media 81 } // namespace media
81 82
82 #endif // MEDIA_BASE_TIME_DELTA_INTERPOLATOR_H_ 83 #endif // MEDIA_BASE_TIME_DELTA_INTERPOLATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698