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/alsa/audio_manager_alsa.h" | 5 #include "media/audio/alsa/audio_manager_alsa.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/environment.h" | 10 #include "base/environment.h" |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
11 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
12 #include "base/nix/xdg_util.h" | 15 #include "base/nix/xdg_util.h" |
13 #include "base/process/launch.h" | 16 #include "base/process/launch.h" |
14 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
15 #include "media/audio/audio_output_dispatcher.h" | 18 #include "media/audio/audio_output_dispatcher.h" |
16 #include "media/audio/audio_parameters.h" | 19 #include "media/audio/audio_parameters.h" |
17 #if defined(USE_CRAS) | 20 #if defined(USE_CRAS) |
18 #include "media/audio/cras/audio_manager_cras.h" | 21 #include "media/audio/cras/audio_manager_cras.h" |
19 #endif | 22 #endif |
20 #include "media/audio/alsa/alsa_input.h" | 23 #include "media/audio/alsa/alsa_input.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 353 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
351 switches::kAlsaInputDevice)) { | 354 switches::kAlsaInputDevice)) { |
352 device_name = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 355 device_name = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
353 switches::kAlsaInputDevice); | 356 switches::kAlsaInputDevice); |
354 } | 357 } |
355 | 358 |
356 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get()); | 359 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get()); |
357 } | 360 } |
358 | 361 |
359 } // namespace media | 362 } // namespace media |
OLD | NEW |