OLD | NEW |
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_FILTERS_AUDIO_CLOCK_H_ | 5 #ifndef MEDIA_FILTERS_AUDIO_CLOCK_H_ |
6 #define MEDIA_FILTERS_AUDIO_CLOCK_H_ | 6 #define MEDIA_FILTERS_AUDIO_CLOCK_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/time/time.h" | 11 #include "base/time/time.h" |
11 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
12 | 13 |
13 namespace media { | 14 namespace media { |
14 | 15 |
15 // Models a queue of buffered audio in a playback pipeline for use with | 16 // Models a queue of buffered audio in a playback pipeline for use with |
16 // estimating the amount of delay in wall clock time. Takes changes in playback | 17 // estimating the amount of delay in wall clock time. Takes changes in playback |
17 // rate into account to handle scenarios where multiple rates may be present in | 18 // rate into account to handle scenarios where multiple rates may be present in |
18 // a playback pipeline with large delay. | 19 // a playback pipeline with large delay. |
19 // | 20 // |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 base::TimeDelta front_timestamp_; | 126 base::TimeDelta front_timestamp_; |
126 base::TimeDelta back_timestamp_; | 127 base::TimeDelta back_timestamp_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(AudioClock); | 129 DISALLOW_COPY_AND_ASSIGN(AudioClock); |
129 }; | 130 }; |
130 | 131 |
131 } // namespace media | 132 } // namespace media |
132 | 133 |
133 #endif // MEDIA_FILTERS_AUDIO_CLOCK_H_ | 134 #endif // MEDIA_FILTERS_AUDIO_CLOCK_H_ |
OLD | NEW |