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 26 matching lines...) Loading... |
37 SuppressionLevel suppression_level() const override; | 37 SuppressionLevel suppression_level() const override; |
38 bool is_drift_compensation_enabled() const override; | 38 bool is_drift_compensation_enabled() const override; |
39 | 39 |
40 void Initialize(int sample_rate_hz, | 40 void Initialize(int sample_rate_hz, |
41 size_t num_reverse_channels_, | 41 size_t num_reverse_channels_, |
42 size_t num_output_channels_, | 42 size_t num_output_channels_, |
43 size_t num_proc_channels_); | 43 size_t num_proc_channels_); |
44 void SetExtraOptions(const webrtc::Config& config); | 44 void SetExtraOptions(const webrtc::Config& config); |
45 bool is_delay_agnostic_enabled() const; | 45 bool is_delay_agnostic_enabled() const; |
46 bool is_extended_filter_enabled() const; | 46 bool is_extended_filter_enabled() const; |
47 bool is_aec3_enabled() const; | |
48 std::string GetExperimentsDescription(); | 47 std::string GetExperimentsDescription(); |
49 bool is_refined_adaptive_filter_enabled() const; | 48 bool is_refined_adaptive_filter_enabled() const; |
50 | 49 |
51 // Returns the system delay of the first AEC component. | 50 // Returns the system delay of the first AEC component. |
52 int GetSystemDelayInSamples() const; | 51 int GetSystemDelayInSamples() const; |
53 | 52 |
54 static void PackRenderAudioBuffer(const AudioBuffer* audio, | 53 static void PackRenderAudioBuffer(const AudioBuffer* audio, |
55 size_t num_output_channels, | 54 size_t num_output_channels, |
56 size_t num_channels, | 55 size_t num_channels, |
57 std::vector<float>* packed_buffer); | 56 std::vector<float>* packed_buffer); |
(...skipping 39 matching lines...) Loading... |
97 bool enabled_ = false; | 96 bool enabled_ = false; |
98 bool drift_compensation_enabled_ GUARDED_BY(crit_capture_); | 97 bool drift_compensation_enabled_ GUARDED_BY(crit_capture_); |
99 bool metrics_enabled_ GUARDED_BY(crit_capture_); | 98 bool metrics_enabled_ GUARDED_BY(crit_capture_); |
100 SuppressionLevel suppression_level_ GUARDED_BY(crit_capture_); | 99 SuppressionLevel suppression_level_ GUARDED_BY(crit_capture_); |
101 int stream_drift_samples_ GUARDED_BY(crit_capture_); | 100 int stream_drift_samples_ GUARDED_BY(crit_capture_); |
102 bool was_stream_drift_set_ GUARDED_BY(crit_capture_); | 101 bool was_stream_drift_set_ GUARDED_BY(crit_capture_); |
103 bool stream_has_echo_ GUARDED_BY(crit_capture_); | 102 bool stream_has_echo_ GUARDED_BY(crit_capture_); |
104 bool delay_logging_enabled_ GUARDED_BY(crit_capture_); | 103 bool delay_logging_enabled_ GUARDED_BY(crit_capture_); |
105 bool extended_filter_enabled_ GUARDED_BY(crit_capture_); | 104 bool extended_filter_enabled_ GUARDED_BY(crit_capture_); |
106 bool delay_agnostic_enabled_ GUARDED_BY(crit_capture_); | 105 bool delay_agnostic_enabled_ GUARDED_BY(crit_capture_); |
107 bool aec3_enabled_ GUARDED_BY(crit_capture_); | |
108 bool refined_adaptive_filter_enabled_ GUARDED_BY(crit_capture_) = false; | 106 bool refined_adaptive_filter_enabled_ GUARDED_BY(crit_capture_) = false; |
109 | 107 |
110 std::vector<std::unique_ptr<Canceller>> cancellers_; | 108 std::vector<std::unique_ptr<Canceller>> cancellers_; |
111 std::unique_ptr<StreamProperties> stream_properties_; | 109 std::unique_ptr<StreamProperties> stream_properties_; |
112 | 110 |
113 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCancellationImpl); | 111 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCancellationImpl); |
114 }; | 112 }; |
115 | 113 |
116 } // namespace webrtc | 114 } // namespace webrtc |
117 | 115 |
118 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ | 116 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ |
OLD | NEW |