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

Side by Side Diff: media/base/media_switches.cc

Issue 2043353002: Make fake audio file playback loop by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: String handling is hard Created 4 years, 6 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/simple_sources_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "media/base/media_switches.h" 6 #include "media/base/media_switches.h"
7 7
8 namespace switches { 8 namespace switches {
9 9
10 // Allow users to specify a custom buffer size for debugging purpose. 10 // Allow users to specify a custom buffer size for debugging purpose.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream"; 86 const char kUseFakeDeviceForMediaStream[] = "use-fake-device-for-media-stream";
87 87
88 // Use an .y4m file to play as the webcam. See the comments in 88 // Use an .y4m file to play as the webcam. See the comments in
89 // media/capture/video/file_video_capture_device.h for more details. 89 // media/capture/video/file_video_capture_device.h for more details.
90 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture"; 90 const char kUseFileForFakeVideoCapture[] = "use-file-for-fake-video-capture";
91 91
92 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat 92 // Play a .wav file as the microphone. Note that for WebRTC calls we'll treat
93 // the bits as if they came from the microphone, which means you should disable 93 // the bits as if they came from the microphone, which means you should disable
94 // audio processing (lest your audio file will play back distorted). The input 94 // audio processing (lest your audio file will play back distorted). The input
95 // file is converted to suit Chrome's audio buses if necessary, so most sane 95 // file is converted to suit Chrome's audio buses if necessary, so most sane
96 // .wav files should work. 96 // .wav files should work. You can pass either <path> to play the file looping
97 // or <path>%noloop to stop after playing the file to completion.
97 const char kUseFileForFakeAudioCapture[] = "use-file-for-fake-audio-capture"; 98 const char kUseFileForFakeAudioCapture[] = "use-file-for-fake-audio-capture";
98 99
99 // Enables support for inband text tracks in media content. 100 // Enables support for inband text tracks in media content.
100 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; 101 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks";
101 102
102 // When running tests on a system without the required hardware or libraries, 103 // When running tests on a system without the required hardware or libraries,
103 // this flag will cause the tests to fail. Otherwise, they silently succeed. 104 // this flag will cause the tests to fail. Otherwise, they silently succeed.
104 const char kRequireAudioHardwareForTesting[] = 105 const char kRequireAudioHardwareForTesting[] =
105 "require-audio-hardware-for-testing"; 106 "require-audio-hardware-for-testing";
106 107
107 // Allows clients to override the threshold for when the media renderer will 108 // Allows clients to override the threshold for when the media renderer will
108 // declare the underflow state for the video stream when audio is present. 109 // declare the underflow state for the video stream when audio is present.
109 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish. 110 // TODO(dalecurtis): Remove once experiments for http://crbug.com/470940 finish.
110 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms"; 111 const char kVideoUnderflowThresholdMs[] = "video-underflow-threshold-ms";
111 112
112 // Disables the new rendering algorithm for webrtc, which is designed to improve 113 // Disables the new rendering algorithm for webrtc, which is designed to improve
113 // the rendering smoothness. 114 // the rendering smoothness.
114 const char kDisableRTCSmoothnessAlgorithm[] = 115 const char kDisableRTCSmoothnessAlgorithm[] =
115 "disable-rtc-smoothness-algorithm"; 116 "disable-rtc-smoothness-algorithm";
116 117
117 } // namespace switches 118 } // namespace switches
118 119
119 namespace media { 120 namespace media {
120 121
121 // Use shared block-based buffering for media. 122 // Use shared block-based buffering for media.
122 const base::Feature kUseNewMediaCache{"use-new-media-cache", 123 const base::Feature kUseNewMediaCache{"use-new-media-cache",
123 base::FEATURE_ENABLED_BY_DEFAULT}; 124 base::FEATURE_ENABLED_BY_DEFAULT};
124 125
125 } // namespace media 126 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/simple_sources_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698