OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUDIO_TIMESTAMP_HELPER_H_ | 5 #ifndef MEDIA_BASE_AUDIO_TIMESTAMP_HELPER_H_ |
6 #define MEDIA_BASE_AUDIO_TIMESTAMP_HELPER_H_ | 6 #define MEDIA_BASE_AUDIO_TIMESTAMP_HELPER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/time/time.h" | 9 #include "base/time/time.h" |
9 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
10 | 11 |
11 namespace media { | 12 namespace media { |
12 | 13 |
13 // Generates timestamps for a sequence of audio sample frames. This class should | 14 // Generates timestamps for a sequence of audio sample frames. This class should |
14 // be used any place timestamps need to be calculated for a sequence of audio | 15 // be used any place timestamps need to be calculated for a sequence of audio |
15 // samples. It helps avoid timestamps inaccuracies caused by rounding/truncation | 16 // samples. It helps avoid timestamps inaccuracies caused by rounding/truncation |
16 // in repeated sample count to timestamp conversions. | 17 // in repeated sample count to timestamp conversions. |
17 // | 18 // |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 64 |
64 // Number of frames accumulated by AddFrames() calls. | 65 // Number of frames accumulated by AddFrames() calls. |
65 int64_t frame_count_; | 66 int64_t frame_count_; |
66 | 67 |
67 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioTimestampHelper); | 68 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioTimestampHelper); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace media | 71 } // namespace media |
71 | 72 |
72 #endif | 73 #endif |
OLD | NEW |