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

Side by Side Diff: media/audio/alsa/audio_manager_alsa.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « media/audio/alsa/alsa_output.h ('k') | media/audio/android/audio_manager_android.cc » ('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 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> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/free_deleter.h" 14 #include "base/memory/free_deleter.h"
15 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
16 #include "base/nix/xdg_util.h" 16 #include "base/nix/xdg_util.h"
17 #include "base/process/launch.h" 17 #include "base/process/launch.h"
18 #include "base/stl_util.h" 18 #include "base/stl_util.h"
19 #include "media/audio/audio_output_dispatcher.h" 19 #include "media/audio/audio_output_dispatcher.h"
20 #include "media/audio/audio_parameters.h"
21 #if defined(USE_CRAS) 20 #if defined(USE_CRAS)
22 #include "media/audio/cras/audio_manager_cras.h" 21 #include "media/audio/cras/audio_manager_cras.h"
23 #endif 22 #endif
24 #include "media/audio/alsa/alsa_input.h" 23 #include "media/audio/alsa/alsa_input.h"
25 #include "media/audio/alsa/alsa_output.h" 24 #include "media/audio/alsa/alsa_output.h"
26 #include "media/audio/alsa/alsa_wrapper.h" 25 #include "media/audio/alsa/alsa_wrapper.h"
27 #if defined(USE_PULSEAUDIO) 26 #if defined(USE_PULSEAUDIO)
28 #include "media/audio/pulse/audio_manager_pulse.h" 27 #include "media/audio/pulse/audio_manager_pulse.h"
29 #endif 28 #endif
29 #include "media/base/audio_parameters.h"
30 #include "media/base/channel_layout.h" 30 #include "media/base/channel_layout.h"
31 #include "media/base/limits.h" 31 #include "media/base/limits.h"
32 #include "media/base/media_switches.h" 32 #include "media/base/media_switches.h"
33 33
34 namespace media { 34 namespace media {
35 35
36 // Maximum number of output streams that can be open simultaneously. 36 // Maximum number of output streams that can be open simultaneously.
37 static const int kMaxOutputStreams = 50; 37 static const int kMaxOutputStreams = 50;
38 38
39 // Default sample rate for input and output streams. 39 // Default sample rate for input and output streams.
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 359 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
360 switches::kAlsaInputDevice)) { 360 switches::kAlsaInputDevice)) {
361 device_name = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 361 device_name = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
362 switches::kAlsaInputDevice); 362 switches::kAlsaInputDevice);
363 } 363 }
364 364
365 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get()); 365 return new AlsaPcmInputStream(this, device_name, params, wrapper_.get());
366 } 366 }
367 367
368 } // namespace media 368 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/alsa/alsa_output.h ('k') | media/audio/android/audio_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698