| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // EchoControlMobile. It can be set in the constructor | 85 // EchoControlMobile. It can be set in the constructor |
| 86 // or using AudioProcessing::SetExtraOptions(). | 86 // or using AudioProcessing::SetExtraOptions(). |
| 87 struct RefinedAdaptiveFilter { | 87 struct RefinedAdaptiveFilter { |
| 88 RefinedAdaptiveFilter() : enabled(false) {} | 88 RefinedAdaptiveFilter() : enabled(false) {} |
| 89 explicit RefinedAdaptiveFilter(bool enabled) : enabled(enabled) {} | 89 explicit RefinedAdaptiveFilter(bool enabled) : enabled(enabled) {} |
| 90 static const ConfigOptionID identifier = | 90 static const ConfigOptionID identifier = |
| 91 ConfigOptionID::kAecRefinedAdaptiveFilter; | 91 ConfigOptionID::kAecRefinedAdaptiveFilter; |
| 92 bool enabled; | 92 bool enabled; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // Enables the adaptive level controller. |
| 96 struct LevelControl { |
| 97 LevelControl() : enabled(false) {} |
| 98 explicit LevelControl(bool enabled) : enabled(enabled) {} |
| 99 static const ConfigOptionID identifier = ConfigOptionID::kLevelControl; |
| 100 bool enabled; |
| 101 }; |
| 102 |
| 95 // Enables delay-agnostic echo cancellation. This feature relies on internally | 103 // Enables delay-agnostic echo cancellation. This feature relies on internally |
| 96 // estimated delays between the process and reverse streams, thus not relying | 104 // estimated delays between the process and reverse streams, thus not relying |
| 97 // on reported system delays. This configuration only applies to | 105 // on reported system delays. This configuration only applies to |
| 98 // EchoCancellation and not EchoControlMobile. It can be set in the constructor | 106 // EchoCancellation and not EchoControlMobile. It can be set in the constructor |
| 99 // or using AudioProcessing::SetExtraOptions(). | 107 // or using AudioProcessing::SetExtraOptions(). |
| 100 struct DelayAgnostic { | 108 struct DelayAgnostic { |
| 101 DelayAgnostic() : enabled(false) {} | 109 DelayAgnostic() : enabled(false) {} |
| 102 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} | 110 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} |
| 103 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic; | 111 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic; |
| 104 bool enabled; | 112 bool enabled; |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 // This does not impact the size of frames passed to |ProcessStream()|. | 986 // This does not impact the size of frames passed to |ProcessStream()|. |
| 979 virtual int set_frame_size_ms(int size) = 0; | 987 virtual int set_frame_size_ms(int size) = 0; |
| 980 virtual int frame_size_ms() const = 0; | 988 virtual int frame_size_ms() const = 0; |
| 981 | 989 |
| 982 protected: | 990 protected: |
| 983 virtual ~VoiceDetection() {} | 991 virtual ~VoiceDetection() {} |
| 984 }; | 992 }; |
| 985 } // namespace webrtc | 993 } // namespace webrtc |
| 986 | 994 |
| 987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 995 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |