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

Side by Side Diff: media/audio/linux/audio_manager_linux.cc

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/linux/audio_manager_linux.h ('k') | media/audio/mac/audio_input_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/linux/audio_manager_linux.h" 5 #include "media/audio/linux/audio_manager_linux.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/nix/xdg_util.h" 10 #include "base/nix/xdg_util.h"
11 #include "base/process_util.h" 11 #include "base/process_util.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "media/audio/audio_output_dispatcher.h" 13 #include "media/audio/audio_output_dispatcher.h"
14 #include "media/audio/linux/alsa_input.h" 14 #include "media/audio/linux/alsa_input.h"
15 #include "media/audio/linux/alsa_output.h" 15 #include "media/audio/linux/alsa_output.h"
16 #include "media/audio/linux/alsa_wrapper.h" 16 #include "media/audio/linux/alsa_wrapper.h"
17 #if defined(USE_PULSEAUDIO) 17 #if defined(USE_PULSEAUDIO)
18 #include "media/audio/pulse/pulse_output.h" 18 #include "media/audio/pulse/pulse_output.h"
19 #endif 19 #endif
20 #if defined(USE_CRAS) 20 #if defined(USE_CRAS)
21 #include "media/audio/linux/cras_output.h" 21 #include "media/audio/linux/cras_output.h"
22 #endif 22 #endif
23 #include "media/base/limits.h" 23 #include "media/base/limits.h"
24 #include "media/base/media_switches.h" 24 #include "media/base/media_switches.h"
25 25
26 namespace media {
27
26 // Maximum number of output streams that can be open simultaneously. 28 // Maximum number of output streams that can be open simultaneously.
27 static const int kMaxOutputStreams = 50; 29 static const int kMaxOutputStreams = 50;
28 30
29 // Since "default", "pulse" and "dmix" devices are virtual devices mapped to 31 // Since "default", "pulse" and "dmix" devices are virtual devices mapped to
30 // real devices, we remove them from the list to avoiding duplicate counting. 32 // real devices, we remove them from the list to avoiding duplicate counting.
31 // In addition, note that we support no more than 2 channels for recording, 33 // In addition, note that we support no more than 2 channels for recording,
32 // hence surround devices are not stored in the list. 34 // hence surround devices are not stored in the list.
33 static const char* kInvalidAudioInputDevices[] = { 35 static const char* kInvalidAudioInputDevices[] = {
34 "default", 36 "default",
35 "null", 37 "null",
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 device_name = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 304 device_name = CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
303 switches::kAlsaInputDevice); 305 switches::kAlsaInputDevice);
304 } 306 }
305 307
306 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get()); 308 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get());
307 } 309 }
308 310
309 AudioManager* CreateAudioManager() { 311 AudioManager* CreateAudioManager() {
310 return new AudioManagerLinux(); 312 return new AudioManagerLinux();
311 } 313 }
314
315 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/linux/audio_manager_linux.h ('k') | media/audio/mac/audio_input_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698