| 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> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 10 #include "base/environment.h" | 12 #include "base/environment.h" |
| 11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 12 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
| 13 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 14 #include "base/nix/xdg_util.h" | 16 #include "base/nix/xdg_util.h" |
| 15 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
| 16 #include "chromeos/audio/audio_device.h" | 18 #include "chromeos/audio/audio_device.h" |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 case 24: | 285 case 24: |
| 284 return SND_PCM_FORMAT_S24; | 286 return SND_PCM_FORMAT_S24; |
| 285 case 32: | 287 case 32: |
| 286 return SND_PCM_FORMAT_S32; | 288 return SND_PCM_FORMAT_S32; |
| 287 default: | 289 default: |
| 288 return SND_PCM_FORMAT_UNKNOWN; | 290 return SND_PCM_FORMAT_UNKNOWN; |
| 289 } | 291 } |
| 290 } | 292 } |
| 291 | 293 |
| 292 } // namespace media | 294 } // namespace media |
| OLD | NEW |