| 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 // TODO(guidou): Remove this function. http://crbug.com/706408 |
| 114 static AudioProcessingProperties FromConstraints( |
| 115 const blink::WebMediaConstraints& constraints, |
| 116 const MediaStreamDevice::AudioDeviceParameters& input_params); |
| 117 |
| 113 bool enable_sw_echo_cancellation = true; | 118 bool enable_sw_echo_cancellation = true; |
| 114 bool disable_hw_echo_cancellation = false; | 119 bool disable_hw_echo_cancellation = false; |
| 115 bool goog_audio_mirroring = false; | 120 bool goog_audio_mirroring = false; |
| 116 bool goog_auto_gain_control = true; | 121 bool goog_auto_gain_control = true; |
| 117 bool goog_experimental_echo_cancellation = | 122 bool goog_experimental_echo_cancellation = |
| 118 #if defined(OS_ANDROID) | 123 #if defined(OS_ANDROID) |
| 119 false; | 124 false; |
| 120 #else | 125 #else |
| 121 true; | 126 true; |
| 122 #endif | 127 #endif |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void StopEchoCancellationDump(AudioProcessing* audio_processing); | 195 void StopEchoCancellationDump(AudioProcessing* audio_processing); |
| 191 | 196 |
| 192 void EnableAutomaticGainControl(AudioProcessing* audio_processing); | 197 void EnableAutomaticGainControl(AudioProcessing* audio_processing); |
| 193 | 198 |
| 194 void GetAudioProcessingStats( | 199 void GetAudioProcessingStats( |
| 195 AudioProcessing* audio_processing, | 200 AudioProcessing* audio_processing, |
| 196 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); | 201 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); |
| 197 | 202 |
| 198 // Returns the array geometry from the media constraints if existing and | 203 // Returns the array geometry from the media constraints if existing and |
| 199 // otherwise that provided by the input device. | 204 // otherwise that provided by the input device. |
| 200 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( | 205 // TODO(guidou): Remove this function. http://crbug.com/706408 |
| 206 CONTENT_EXPORT std::vector<media::Point> GetArrayGeometryPreferringConstraints( |
| 201 const MediaAudioConstraints& audio_constraints, | 207 const MediaAudioConstraints& audio_constraints, |
| 202 const MediaStreamDevice::AudioDeviceParameters& input_params); | 208 const MediaStreamDevice::AudioDeviceParameters& input_params); |
| 203 | 209 |
| 210 // TODO(guidou): Remove this function. http://crbug.com/706408 |
| 211 CONTENT_EXPORT bool IsOldAudioConstraints(); |
| 212 |
| 204 } // namespace content | 213 } // namespace content |
| 205 | 214 |
| 206 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 215 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
| OLD | NEW |