| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/cras/audio_manager_cras.h" | 5 #include "media/audio/cras/audio_manager_cras.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 } | 362 } |
| 363 | 363 |
| 364 bool AudioManagerCras::IsDefault(const std::string& device_id, bool is_input) { | 364 bool AudioManagerCras::IsDefault(const std::string& device_id, bool is_input) { |
| 365 AudioDeviceNames device_names; | 365 AudioDeviceNames device_names; |
| 366 GetAudioDeviceNamesImpl(is_input, &device_names); | 366 GetAudioDeviceNamesImpl(is_input, &device_names); |
| 367 DCHECK(!device_names.empty()); | 367 DCHECK(!device_names.empty()); |
| 368 const AudioDeviceName& device_name = device_names.front(); | 368 const AudioDeviceName& device_name = device_names.front(); |
| 369 return device_name.unique_id == device_id; | 369 return device_name.unique_id == device_id; |
| 370 } | 370 } |
| 371 | 371 |
| 372 int AudioManager::GetMinimumAudioBufferSize(int sample_rate) { |
| 373 return GetMinimumOutputBufferSizePerBoard(); |
| 374 } |
| 375 |
| 376 int AudioManager::GetMaximumAudioBufferSize(int sample_rate) { |
| 377 return kMaximumOutputBufferSize; |
| 378 } |
| 379 |
| 372 } // namespace media | 380 } // namespace media |
| OLD | NEW |