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

Side by Side Diff: media/base/audio_hardware_config.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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
« no previous file with comments | « media/base/audio_fifo_unittest.cc ('k') | media/base/audio_hash.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) 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/base/audio_hardware_config.h" 5 #include "media/base/audio_hardware_config.h"
6 6
7 #include <stdint.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <cmath> 10 #include <cmath>
9 11
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "build/build_config.h" 13 #include "build/build_config.h"
12 14
13 using base::AutoLock; 15 using base::AutoLock;
14 using media::AudioParameters; 16 using media::AudioParameters;
15 17
16 namespace media { 18 namespace media {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 130
129 return std::max(output_params.frames_per_buffer(), high_latency_buffer_size); 131 return std::max(output_params.frames_per_buffer(), high_latency_buffer_size);
130 } 132 }
131 133
132 int AudioHardwareConfig::GetHighLatencyBufferSize() const { 134 int AudioHardwareConfig::GetHighLatencyBufferSize() const {
133 AutoLock auto_lock(config_lock_); 135 AutoLock auto_lock(config_lock_);
134 return GetHighLatencyBufferSize(output_params_); 136 return GetHighLatencyBufferSize(output_params_);
135 } 137 }
136 138
137 } // namespace media 139 } // namespace media
OLDNEW
« no previous file with comments | « media/base/audio_fifo_unittest.cc ('k') | media/base/audio_hash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698