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

Side by Side Diff: media/audio/cras/audio_manager_cras.cc

Issue 2908073002: Make OS audio buffer size limits visible. (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698