OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 struct CONTENT_EXPORT AudioProcessingProperties { | 103 struct CONTENT_EXPORT AudioProcessingProperties { |
104 // Creates an AudioProcessingProperties object with fields initialized to | 104 // Creates an AudioProcessingProperties object with fields initialized to |
105 // their default values. | 105 // their default values. |
106 AudioProcessingProperties(); | 106 AudioProcessingProperties(); |
107 AudioProcessingProperties(const AudioProcessingProperties& other); | 107 AudioProcessingProperties(const AudioProcessingProperties& other); |
108 AudioProcessingProperties& operator=(const AudioProcessingProperties& other); | 108 AudioProcessingProperties& operator=(const AudioProcessingProperties& other); |
109 AudioProcessingProperties(AudioProcessingProperties&& other); | 109 AudioProcessingProperties(AudioProcessingProperties&& other); |
110 AudioProcessingProperties& operator=(AudioProcessingProperties&& other); | 110 AudioProcessingProperties& operator=(AudioProcessingProperties&& other); |
111 ~AudioProcessingProperties(); | 111 ~AudioProcessingProperties(); |
112 | 112 |
| 113 // Disables properties that are enabled by default. |
| 114 void DisableDefaultPropertiesForTesting(); |
| 115 |
| 116 // TODO(guidou): Remove this function. http://crbug.com/706408 |
| 117 static AudioProcessingProperties FromConstraints( |
| 118 const blink::WebMediaConstraints& constraints, |
| 119 const MediaStreamDevice::AudioDeviceParameters& input_params); |
| 120 |
113 bool enable_sw_echo_cancellation = true; | 121 bool enable_sw_echo_cancellation = true; |
114 bool disable_hw_echo_cancellation = false; | 122 bool disable_hw_echo_cancellation = false; |
115 bool goog_audio_mirroring = false; | 123 bool goog_audio_mirroring = false; |
116 bool goog_auto_gain_control = true; | 124 bool goog_auto_gain_control = true; |
117 bool goog_experimental_echo_cancellation = | 125 bool goog_experimental_echo_cancellation = |
118 #if defined(OS_ANDROID) | 126 #if defined(OS_ANDROID) |
119 false; | 127 false; |
120 #else | 128 #else |
121 true; | 129 true; |
122 #endif | 130 #endif |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 void StopEchoCancellationDump(AudioProcessing* audio_processing); | 198 void StopEchoCancellationDump(AudioProcessing* audio_processing); |
191 | 199 |
192 void EnableAutomaticGainControl(AudioProcessing* audio_processing); | 200 void EnableAutomaticGainControl(AudioProcessing* audio_processing); |
193 | 201 |
194 void GetAudioProcessingStats( | 202 void GetAudioProcessingStats( |
195 AudioProcessing* audio_processing, | 203 AudioProcessing* audio_processing, |
196 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); | 204 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); |
197 | 205 |
198 // Returns the array geometry from the media constraints if existing and | 206 // Returns the array geometry from the media constraints if existing and |
199 // otherwise that provided by the input device. | 207 // otherwise that provided by the input device. |
200 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( | 208 // TODO(guidou): Remove this function. http://crbug.com/706408 |
| 209 CONTENT_EXPORT std::vector<media::Point> GetArrayGeometryPreferringConstraints( |
201 const MediaAudioConstraints& audio_constraints, | 210 const MediaAudioConstraints& audio_constraints, |
202 const MediaStreamDevice::AudioDeviceParameters& input_params); | 211 const MediaStreamDevice::AudioDeviceParameters& input_params); |
203 | 212 |
| 213 // TODO(guidou): Remove this function. http://crbug.com/706408 |
| 214 CONTENT_EXPORT bool IsOldAudioConstraints(); |
| 215 |
204 } // namespace content | 216 } // namespace content |
205 | 217 |
206 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 218 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
OLD | NEW |