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"; |
(...skipping 10 matching lines...) Expand all Loading... |
21 const char kUseCras[] = "use-cras"; | 21 const char kUseCras[] = "use-cras"; |
22 #endif | 22 #endif |
23 | 23 |
24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
25 // Use exclusive mode audio streaming for Windows Vista and higher. | 25 // Use exclusive mode audio streaming for Windows Vista and higher. |
26 // Leads to lower latencies for audio streams which uses the | 26 // Leads to lower latencies for audio streams which uses the |
27 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. | 27 // AudioParameters::AUDIO_PCM_LOW_LATENCY audio path. |
28 // 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 |
29 // for details. | 29 // for details. |
30 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; | 30 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; |
| 31 |
| 32 // Use Windows WaveOut/In audio API even if Core Audio is supported. |
| 33 const char kForceWaveAudio[] = "force-wave-audio"; |
31 #endif | 34 #endif |
32 | 35 |
33 // Disable automatic fallback from low latency to high latency path. | 36 // Disable automatic fallback from low latency to high latency path. |
34 const char kDisableAudioFallback[] = "disable-audio-fallback"; | 37 const char kDisableAudioFallback[] = "disable-audio-fallback"; |
35 | 38 |
36 // Disable AudioOutputResampler for automatic audio resampling and rebuffering. | 39 // Disable AudioOutputResampler for automatic audio resampling and rebuffering. |
37 const char kDisableAudioOutputResampler[] = "disable-audio-output-resampler"; | 40 const char kDisableAudioOutputResampler[] = "disable-audio-output-resampler"; |
38 | 41 |
39 // Controls renderer side mixing and low latency audio path for media elements. | 42 // Controls renderer side mixing and low latency audio path for media elements. |
40 const char kDisableRendererSideMixing[] = "disable-renderer-side-mixing"; | 43 const char kDisableRendererSideMixing[] = "disable-renderer-side-mixing"; |
(...skipping 11 matching lines...) Expand all Loading... |
52 const char kEnableOpusPlayback[] = "enable-opus-playback"; | 55 const char kEnableOpusPlayback[] = "enable-opus-playback"; |
53 | 56 |
54 // Enables VP9 playback in media elements. | 57 // Enables VP9 playback in media elements. |
55 const char kEnableVp9Playback[] = "enable-vp9-playback"; | 58 const char kEnableVp9Playback[] = "enable-vp9-playback"; |
56 | 59 |
57 #if defined(OS_WIN) | 60 #if defined(OS_WIN) |
58 const char kWaveOutBuffers[] = "waveout-buffers"; | 61 const char kWaveOutBuffers[] = "waveout-buffers"; |
59 #endif | 62 #endif |
60 | 63 |
61 } // namespace switches | 64 } // namespace switches |
OLD | NEW |