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

Side by Side Diff: media/audio/audio_silence_detector.cc

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/audio/audio_silence_detector.h ('k') | media/audio/audio_silence_detector_unittest.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "media/audio/audio_silence_detector.h" 5 #include "media/audio/audio_silence_detector.h"
6 6
7 #include "base/float_util.h" 7 #include "base/float_util.h"
8 #include "base/time.h" 8 #include "base/time/time.h"
9 #include "media/base/audio_bus.h" 9 #include "media/base/audio_bus.h"
10 10
11 using base::AtomicRefCountDec; 11 using base::AtomicRefCountDec;
12 using base::AtomicRefCountInc; 12 using base::AtomicRefCountInc;
13 using base::AtomicRefCountIsOne; 13 using base::AtomicRefCountIsOne;
14 using base::AtomicRefCountIsZero; 14 using base::AtomicRefCountIsZero;
15 15
16 namespace media { 16 namespace media {
17 17
18 AudioSilenceDetector::AudioSilenceDetector( 18 AudioSilenceDetector::AudioSilenceDetector(
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 max_value = *p; 125 max_value = *p;
126 if ((max_value - min_value) > silence_threshold_) 126 if ((max_value - min_value) > silence_threshold_)
127 return false; 127 return false;
128 } 128 }
129 } 129 }
130 130
131 return true; 131 return true;
132 } 132 }
133 133
134 } // namespace media 134 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_silence_detector.h ('k') | media/audio/audio_silence_detector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698