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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // the delay difference more heavily, and back off from the difference more. | 62 // the delay difference more heavily, and back off from the difference more. |
63 // Adjustments force a readaptation of the filter, so they should be avoided | 63 // Adjustments force a readaptation of the filter, so they should be avoided |
64 // except when really necessary. | 64 // except when really necessary. |
65 struct ExtendedFilter { | 65 struct ExtendedFilter { |
66 ExtendedFilter() : enabled(false) {} | 66 ExtendedFilter() : enabled(false) {} |
67 explicit ExtendedFilter(bool enabled) : enabled(enabled) {} | 67 explicit ExtendedFilter(bool enabled) : enabled(enabled) {} |
68 static const ConfigOptionID identifier = ConfigOptionID::kExtendedFilter; | 68 static const ConfigOptionID identifier = ConfigOptionID::kExtendedFilter; |
69 bool enabled; | 69 bool enabled; |
70 }; | 70 }; |
71 | 71 |
| 72 // Enables the next generation AEC functionality. This feature replaces the |
| 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 |
| 75 // constructor or using AudioProcessing::SetExtraOptions(). |
| 76 struct NextGenerationAec { |
| 77 NextGenerationAec() : enabled(false) {} |
| 78 explicit NextGenerationAec(bool enabled) : enabled(enabled) {} |
| 79 static const ConfigOptionID identifier = ConfigOptionID::kNextGenerationAec; |
| 80 bool enabled; |
| 81 }; |
| 82 |
72 // Enables delay-agnostic echo cancellation. This feature relies on internally | 83 // Enables delay-agnostic echo cancellation. This feature relies on internally |
73 // estimated delays between the process and reverse streams, thus not relying | 84 // estimated delays between the process and reverse streams, thus not relying |
74 // on reported system delays. This configuration only applies to | 85 // on reported system delays. This configuration only applies to |
75 // EchoCancellation and not EchoControlMobile. It can be set in the constructor | 86 // EchoCancellation and not EchoControlMobile. It can be set in the constructor |
76 // or using AudioProcessing::SetExtraOptions(). | 87 // or using AudioProcessing::SetExtraOptions(). |
77 struct DelayAgnostic { | 88 struct DelayAgnostic { |
78 DelayAgnostic() : enabled(false) {} | 89 DelayAgnostic() : enabled(false) {} |
79 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} | 90 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} |
80 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic; | 91 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic; |
81 bool enabled; | 92 bool enabled; |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 // This does not impact the size of frames passed to |ProcessStream()|. | 978 // This does not impact the size of frames passed to |ProcessStream()|. |
968 virtual int set_frame_size_ms(int size) = 0; | 979 virtual int set_frame_size_ms(int size) = 0; |
969 virtual int frame_size_ms() const = 0; | 980 virtual int frame_size_ms() const = 0; |
970 | 981 |
971 protected: | 982 protected: |
972 virtual ~VoiceDetection() {} | 983 virtual ~VoiceDetection() {} |
973 }; | 984 }; |
974 } // namespace webrtc | 985 } // namespace webrtc |
975 | 986 |
976 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |