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

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

Issue 18052007: Use a direct include of time headers in media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/audio_renderer_mixer.h ('k') | media/base/buffers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/time.h" 8 #include "base/time/time.h"
9 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 // Generates timestamps for a sequence of audio sample bytes. This class should 13 // Generates timestamps for a sequence of audio sample bytes. This class should
14 // be used any place timestamps need to be calculated for a sequence of audio 14 // 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 15 // samples. It helps avoid timestamps inaccuracies caused by rounding/truncation
16 // in repeated sample count to timestamp conversions. 16 // in repeated sample count to timestamp conversions.
17 // 17 //
18 // The class is constructed with bytes per frame and samples_per_second 18 // The class is constructed with bytes per frame and samples_per_second
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 // Number of frames accumulated by byte counts passed to AddBytes() calls. 66 // Number of frames accumulated by byte counts passed to AddBytes() calls.
67 int64 frame_count_; 67 int64 frame_count_;
68 68
69 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioTimestampHelper); 69 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioTimestampHelper);
70 }; 70 };
71 71
72 } // namespace media 72 } // namespace media
73 73
74 #endif 74 #endif
OLDNEW
« no previous file with comments | « media/base/audio_renderer_mixer.h ('k') | media/base/buffers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698