OLD | NEW |
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/base/media_switches.h" | 5 #include "media/base/media_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // Allow users to specify a custom buffer size for debugging purpose. | 9 // Allow users to specify a custom buffer size for debugging purpose. |
10 const char kAudioBufferSize[] = "audio-buffer-size"; | 10 const char kAudioBufferSize[] = "audio-buffer-size"; |
11 | 11 |
12 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) | 12 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS) |
13 // The Alsa device to use when opening an audio stream. | 13 // The Alsa device to use when opening an audio stream. |
14 const char kAlsaOutputDevice[] = "alsa-output-device"; | 14 const char kAlsaOutputDevice[] = "alsa-output-device"; |
15 // The Alsa device to use when opening an audio input stream. | 15 // The Alsa device to use when opening an audio input stream. |
16 const char kAlsaInputDevice[] = "alsa-input-device"; | 16 const char kAlsaInputDevice[] = "alsa-input-device"; |
17 #endif | 17 #endif |
18 | 18 |
19 #if defined(USE_CRAS) | 19 #if defined(USE_CRAS) |
20 // Use CRAS, the ChromeOS audio server. | 20 // Use CRAS, the ChromeOS audio server. |
21 const char kUseCras[] = "use-cras"; | 21 const char kUseCras[] = "use-cras"; |
22 #endif | 22 #endif |
23 | 23 |
24 #if defined(USE_PULSEAUDIO) | |
25 // Use PulseAudio on platforms that support it. | |
26 const char kUsePulseAudio[] = "use-pulseaudio"; | |
27 #endif | |
28 | |
29 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
30 // Use exclusive mode audio streaming for Windows Vista and higher. | 25 // Use exclusive mode audio streaming for Windows Vista and higher. |
31 // Leads to lower latencies for audio streams which uses the | 26 // Leads to lower latencies for audio streams which uses the |
32 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. | 27 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. |
33 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844(v=vs.85)
.aspx | 28 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844(v=vs.85)
.aspx |
34 // for details. | 29 // for details. |
35 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; | 30 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; |
36 #endif | 31 #endif |
37 | 32 |
38 // Disable automatic fallback from low latency to high latency path. | 33 // Disable automatic fallback from low latency to high latency path. |
(...skipping 18 matching lines...) Expand all Loading... |
57 const char kEnableOpusPlayback[] = "enable-opus-playback"; | 52 const char kEnableOpusPlayback[] = "enable-opus-playback"; |
58 | 53 |
59 // Enables VP9 playback in media elements. | 54 // Enables VP9 playback in media elements. |
60 const char kEnableVp9Playback[] = "enable-vp9-playback"; | 55 const char kEnableVp9Playback[] = "enable-vp9-playback"; |
61 | 56 |
62 #if defined(OS_WIN) | 57 #if defined(OS_WIN) |
63 const char kWaveOutBuffers[] = "waveout-buffers"; | 58 const char kWaveOutBuffers[] = "waveout-buffers"; |
64 #endif | 59 #endif |
65 | 60 |
66 } // namespace switches | 61 } // namespace switches |
OLD | NEW |