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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 72 // Enables the next generation AEC functionality. This feature replaces the |
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 NextGenerationAec { | 76 struct EchoCanceller3 { |
77 NextGenerationAec() : enabled(false) {} | 77 EchoCanceller3() : enabled(false) {} |
78 explicit NextGenerationAec(bool enabled) : enabled(enabled) {} | 78 explicit EchoCanceller3(bool enabled) : enabled(enabled) {} |
79 static const ConfigOptionID identifier = ConfigOptionID::kNextGenerationAec; | 79 static const ConfigOptionID identifier = ConfigOptionID::kEchoCanceller3; |
80 bool enabled; | 80 bool enabled; |
81 }; | 81 }; |
82 | 82 |
83 // Enables delay-agnostic echo cancellation. This feature relies on internally | 83 // Enables delay-agnostic echo cancellation. This feature relies on internally |
84 // estimated delays between the process and reverse streams, thus not relying | 84 // estimated delays between the process and reverse streams, thus not relying |
85 // on reported system delays. This configuration only applies to | 85 // on reported system delays. This configuration only applies to |
86 // EchoCancellation and not EchoControlMobile. It can be set in the constructor | 86 // EchoCancellation and not EchoControlMobile. It can be set in the constructor |
87 // or using AudioProcessing::SetExtraOptions(). | 87 // or using AudioProcessing::SetExtraOptions(). |
88 struct DelayAgnostic { | 88 struct DelayAgnostic { |
89 DelayAgnostic() : enabled(false) {} | 89 DelayAgnostic() : enabled(false) {} |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 // This does not impact the size of frames passed to |ProcessStream()|. | 978 // This does not impact the size of frames passed to |ProcessStream()|. |
979 virtual int set_frame_size_ms(int size) = 0; | 979 virtual int set_frame_size_ms(int size) = 0; |
980 virtual int frame_size_ms() const = 0; | 980 virtual int frame_size_ms() const = 0; |
981 | 981 |
982 protected: | 982 protected: |
983 virtual ~VoiceDetection() {} | 983 virtual ~VoiceDetection() {} |
984 }; | 984 }; |
985 } // namespace webrtc | 985 } // namespace webrtc |
986 | 986 |
987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
OLD | NEW |