| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844.aspx | 60 // See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844.aspx |
| 61 // for details. | 61 // for details. |
| 62 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; | 62 const char kEnableExclusiveAudio[] = "enable-exclusive-audio"; |
| 63 | 63 |
| 64 // Used to troubleshoot problems with different video capture implementations | 64 // Used to troubleshoot problems with different video capture implementations |
| 65 // on Windows. By default we use the Media Foundation API on Windows 7 and up, | 65 // on Windows. By default we use the Media Foundation API on Windows 7 and up, |
| 66 // but specifying this switch will force use of DirectShow always. | 66 // but specifying this switch will force use of DirectShow always. |
| 67 // See bug: http://crbug.com/268412 | 67 // See bug: http://crbug.com/268412 |
| 68 const char kForceDirectShowVideoCapture[] = "force-directshow"; | 68 const char kForceDirectShowVideoCapture[] = "force-directshow"; |
| 69 | 69 |
| 70 // Force the use of MediaFoundation for video capture. This is only supported in |
| 71 // Windows 7 and above. Used, like |kForceDirectShowVideoCapture|, to |
| 72 // troubleshoot problems in Windows platforms. |
| 73 const char kForceMediaFoundationVideoCapture[] = "force-mediafoundation"; |
| 74 |
| 70 // Use Windows WaveOut/In audio API even if Core Audio is supported. | 75 // Use Windows WaveOut/In audio API even if Core Audio is supported. |
| 71 const char kForceWaveAudio[] = "force-wave-audio"; | 76 const char kForceWaveAudio[] = "force-wave-audio"; |
| 72 | 77 |
| 73 // Instead of always using the hardware channel layout, check if a driver | 78 // Instead of always using the hardware channel layout, check if a driver |
| 74 // supports the source channel layout. Avoids outputting empty channels and | 79 // supports the source channel layout. Avoids outputting empty channels and |
| 75 // permits drivers to enable stereo to multichannel expansion. Kept behind a | 80 // permits drivers to enable stereo to multichannel expansion. Kept behind a |
| 76 // flag since some drivers lie about supported layouts and hang when used. See | 81 // flag since some drivers lie about supported layouts and hang when used. See |
| 77 // http://crbug.com/259165 for more details. | 82 // http://crbug.com/259165 for more details. |
| 78 const char kTrySupportedChannelLayouts[] = "try-supported-channel-layouts"; | 83 const char kTrySupportedChannelLayouts[] = "try-supported-channel-layouts"; |
| 79 | 84 |
| 80 // Number of buffers to use for WaveOut. | 85 // Number of buffers to use for WaveOut. |
| 81 const char kWaveOutBuffers[] = "waveout-buffers"; | 86 const char kWaveOutBuffers[] = "waveout-buffers"; |
| 82 #endif | 87 #endif |
| 83 | 88 |
| 84 #if defined(USE_CRAS) | 89 #if defined(USE_CRAS) |
| 85 // Use CRAS, the ChromeOS audio server. | 90 // Use CRAS, the ChromeOS audio server. |
| 86 const char kUseCras[] = "use-cras"; | 91 const char kUseCras[] = "use-cras"; |
| 87 #endif | 92 #endif |
| 88 | 93 |
| 89 // Disables system sounds manager. | 94 // Disables system sounds manager. |
| 90 const char kDisableSystemSoundsManager[] = "disable-system-sounds-manager"; | 95 const char kDisableSystemSoundsManager[] = "disable-system-sounds-manager"; |
| 91 | 96 |
| 92 // Use a raw video file as fake video capture device. | 97 // Use a raw video file as fake video capture device. |
| 93 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; | 98 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; |
| 94 | 99 |
| 95 } // namespace switches | 100 } // namespace switches |
| OLD | NEW |