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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // Number of buffers to use for WaveOut. | 78 // Number of buffers to use for WaveOut. |
79 const char kWaveOutBuffers[] = "waveout-buffers"; | 79 const char kWaveOutBuffers[] = "waveout-buffers"; |
80 #endif | 80 #endif |
81 | 81 |
82 #if defined(USE_CRAS) | 82 #if defined(USE_CRAS) |
83 // Use CRAS, the ChromeOS audio server. | 83 // Use CRAS, the ChromeOS audio server. |
84 const char kUseCras[] = "use-cras"; | 84 const char kUseCras[] = "use-cras"; |
85 #endif | 85 #endif |
86 | 86 |
| 87 // Enables the audio thread hang monitor. Allows us to find users in the field |
| 88 // who have stuck audio threads. See crbug.com/422522 and crbug.com/478932. |
| 89 // TODO(dalecurtis): This should be removed once those issues are resolved. |
| 90 const char kEnableAudioHangMonitor[] = "enable-audio-hang-monitor"; |
| 91 |
87 // Use fake device for Media Stream to replace actual camera and microphone. | 92 // Use fake device for Media Stream to replace actual camera and microphone. |
88 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; | 93 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; |
89 | 94 |
90 // Use an .y4m file to play as the webcam. See the comments in | 95 // Use an .y4m file to play as the webcam. See the comments in |
91 // media/video/capture/file_video_capture_device.h for more details. | 96 // media/video/capture/file_video_capture_device.h for more details. |
92 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; | 97 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; |
93 | 98 |
94 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat | 99 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat |
95 // the bits as if they came from the microphone, which means you should disable | 100 // the bits as if they came from the microphone, which means you should disable |
96 // audio processing (lest your audio file will play back distorted). The input | 101 // audio processing (lest your audio file will play back distorted). The input |
97 // file is converted to suit Chrome's audio buses if necessary, so most sane | 102 // file is converted to suit Chrome's audio buses if necessary, so most sane |
98 // .wav files should work. | 103 // .wav files should work. |
99 const char kUseFileForFakeAudioCapture[] = "use-file-for-fake-audio-capture"; | 104 const char kUseFileForFakeAudioCapture[] = "use-file-for-fake-audio-capture"; |
100 | 105 |
101 // Enables support for inband text tracks in media content. | 106 // Enables support for inband text tracks in media content. |
102 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; | 107 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; |
103 | 108 |
104 // When running tests on a system without the required hardware or libraries, | 109 // When running tests on a system without the required hardware or libraries, |
105 // this flag will cause the tests to fail. Otherwise, they silently succeed. | 110 // this flag will cause the tests to fail. Otherwise, they silently succeed. |
106 const char kRequireAudioHardwareForTesting[] = | 111 const char kRequireAudioHardwareForTesting[] = |
107 "require-audio-hardware-for-testing"; | 112 "require-audio-hardware-for-testing"; |
108 | 113 |
109 // Allows clients to override the threshold for when the media renderer will | 114 // Allows clients to override the threshold for when the media renderer will |
110 // declare the underflow state for the video stream when audio is present. | 115 // declare the underflow state for the video stream when audio is present. |
111 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. | 116 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. |
112 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; | 117 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; |
113 | 118 |
114 } // namespace switches | 119 } // namespace switches |
OLD | NEW |