| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|