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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // standard methods for echo removal in the AEC. This configuration only applies | 73 // standard methods for echo removal in the AEC. This configuration only applies |
74 // to EchoCancellation and not EchoControlMobile. It can be set in the | 74 // to EchoCancellation and not EchoControlMobile. It can be set in the |
75 // constructor or using AudioProcessing::SetExtraOptions(). | 75 // constructor or using AudioProcessing::SetExtraOptions(). |
76 struct EchoCanceller3 { | 76 struct EchoCanceller3 { |
77 EchoCanceller3() : enabled(false) {} | 77 EchoCanceller3() : enabled(false) {} |
78 explicit EchoCanceller3(bool enabled) : enabled(enabled) {} | 78 explicit EchoCanceller3(bool enabled) : enabled(enabled) {} |
79 static const ConfigOptionID identifier = ConfigOptionID::kEchoCanceller3; | 79 static const ConfigOptionID identifier = ConfigOptionID::kEchoCanceller3; |
80 bool enabled; | 80 bool enabled; |
81 }; | 81 }; |
82 | 82 |
| 83 // Enables the refined linear filter adaptation in the echo canceller. |
| 84 // This configuration only applies to EchoCancellation and not |
| 85 // EchoControlMobile. It can be set in the constructor |
| 86 // or using AudioProcessing::SetExtraOptions(). |
| 87 struct RefinedAdaptiveFilter { |
| 88 RefinedAdaptiveFilter() : enabled(false) {} |
| 89 explicit RefinedAdaptiveFilter(bool enabled) : enabled(enabled) {} |
| 90 static const ConfigOptionID identifier = |
| 91 ConfigOptionID::kAecRefinedAdaptiveFilter; |
| 92 bool enabled; |
| 93 }; |
| 94 |
83 // Enables delay-agnostic echo cancellation. This feature relies on internally | 95 // Enables delay-agnostic echo cancellation. This feature relies on internally |
84 // estimated delays between the process and reverse streams, thus not relying | 96 // estimated delays between the process and reverse streams, thus not relying |
85 // on reported system delays. This configuration only applies to | 97 // on reported system delays. This configuration only applies to |
86 // EchoCancellation and not EchoControlMobile. It can be set in the constructor | 98 // EchoCancellation and not EchoControlMobile. It can be set in the constructor |
87 // or using AudioProcessing::SetExtraOptions(). | 99 // or using AudioProcessing::SetExtraOptions(). |
88 struct DelayAgnostic { | 100 struct DelayAgnostic { |
89 DelayAgnostic() : enabled(false) {} | 101 DelayAgnostic() : enabled(false) {} |
90 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} | 102 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} |
91 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic; | 103 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic; |
92 bool enabled; | 104 bool enabled; |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 // This does not impact the size of frames passed to |ProcessStream()|. | 980 // This does not impact the size of frames passed to |ProcessStream()|. |
969 virtual int set_frame_size_ms(int size) = 0; | 981 virtual int set_frame_size_ms(int size) = 0; |
970 virtual int frame_size_ms() const = 0; | 982 virtual int frame_size_ms() const = 0; |
971 | 983 |
972 protected: | 984 protected: |
973 virtual ~VoiceDetection() {} | 985 virtual ~VoiceDetection() {} |
974 }; | 986 }; |
975 } // namespace webrtc | 987 } // namespace webrtc |
976 | 988 |
977 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 989 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |