| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 struct Config { | 246 struct Config { |
| 247 struct LevelController { | 247 struct LevelController { |
| 248 bool enabled = false; | 248 bool enabled = false; |
| 249 | 249 |
| 250 // Sets the initial peak level to use inside the level controller in order | 250 // Sets the initial peak level to use inside the level controller in order |
| 251 // to compute the signal gain. The unit for the peak level is dBFS and | 251 // to compute the signal gain. The unit for the peak level is dBFS and |
| 252 // the allowed range is [-100, 0]. | 252 // the allowed range is [-100, 0]. |
| 253 float initial_peak_level_dbfs = -6.0206f; | 253 float initial_peak_level_dbfs = -6.0206f; |
| 254 } level_controller; | 254 } level_controller; |
| 255 struct ResidualEchoDetector { | 255 struct ResidualEchoDetector { |
| 256 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) | |
| 257 bool enabled = false; | |
| 258 #else | |
| 259 bool enabled = true; | 256 bool enabled = true; |
| 260 #endif | |
| 261 } residual_echo_detector; | 257 } residual_echo_detector; |
| 262 | 258 |
| 263 struct HighPassFilter { | 259 struct HighPassFilter { |
| 264 bool enabled = false; | 260 bool enabled = false; |
| 265 } high_pass_filter; | 261 } high_pass_filter; |
| 266 | 262 |
| 267 // Enables the next generation AEC functionality. This feature replaces the | 263 // Enables the next generation AEC functionality. This feature replaces the |
| 268 // standard methods for echo removal in the AEC. | 264 // standard methods for echo removal in the AEC. |
| 269 // The functionality is not yet activated in the code and turning this on | 265 // The functionality is not yet activated in the code and turning this on |
| 270 // does not yet have the desired behavior. | 266 // does not yet have the desired behavior. |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 // This does not impact the size of frames passed to |ProcessStream()|. | 1074 // This does not impact the size of frames passed to |ProcessStream()|. |
| 1079 virtual int set_frame_size_ms(int size) = 0; | 1075 virtual int set_frame_size_ms(int size) = 0; |
| 1080 virtual int frame_size_ms() const = 0; | 1076 virtual int frame_size_ms() const = 0; |
| 1081 | 1077 |
| 1082 protected: | 1078 protected: |
| 1083 virtual ~VoiceDetection() {} | 1079 virtual ~VoiceDetection() {} |
| 1084 }; | 1080 }; |
| 1085 } // namespace webrtc | 1081 } // namespace webrtc |
| 1086 | 1082 |
| 1087 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1083 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |