| 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 27 matching lines...) Expand all Loading... |
| 38 int stream_drift_samples() const override; | 38 int stream_drift_samples() const override; |
| 39 SuppressionLevel suppression_level() const override; | 39 SuppressionLevel suppression_level() const override; |
| 40 bool is_drift_compensation_enabled() const override; | 40 bool is_drift_compensation_enabled() const override; |
| 41 | 41 |
| 42 // ProcessingComponent implementation. | 42 // ProcessingComponent implementation. |
| 43 int Initialize() override; | 43 int Initialize() override; |
| 44 void SetExtraOptions(const Config& config) override; | 44 void SetExtraOptions(const Config& config) override; |
| 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_next_generation_aec_enabled() const; | 47 bool is_next_generation_aec_enabled() const; |
| 48 bool is_refined_adaptive_filter_enabled() const; |
| 48 | 49 |
| 49 // Reads render side data that has been queued on the render call. | 50 // Reads render side data that has been queued on the render call. |
| 50 // Called holding the capture lock. | 51 // Called holding the capture lock. |
| 51 void ReadQueuedRenderData(); | 52 void ReadQueuedRenderData(); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 // EchoCancellation implementation. | 55 // EchoCancellation implementation. |
| 55 int Enable(bool enable) override; | 56 int Enable(bool enable) override; |
| 56 int enable_drift_compensation(bool enable) override; | 57 int enable_drift_compensation(bool enable) override; |
| 57 void set_stream_drift_samples(int drift) override; | 58 void set_stream_drift_samples(int drift) override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 88 bool drift_compensation_enabled_ GUARDED_BY(crit_capture_); | 89 bool drift_compensation_enabled_ GUARDED_BY(crit_capture_); |
| 89 bool metrics_enabled_ GUARDED_BY(crit_capture_); | 90 bool metrics_enabled_ GUARDED_BY(crit_capture_); |
| 90 SuppressionLevel suppression_level_ GUARDED_BY(crit_capture_); | 91 SuppressionLevel suppression_level_ GUARDED_BY(crit_capture_); |
| 91 int stream_drift_samples_ GUARDED_BY(crit_capture_); | 92 int stream_drift_samples_ GUARDED_BY(crit_capture_); |
| 92 bool was_stream_drift_set_ GUARDED_BY(crit_capture_); | 93 bool was_stream_drift_set_ GUARDED_BY(crit_capture_); |
| 93 bool stream_has_echo_ GUARDED_BY(crit_capture_); | 94 bool stream_has_echo_ GUARDED_BY(crit_capture_); |
| 94 bool delay_logging_enabled_ GUARDED_BY(crit_capture_); | 95 bool delay_logging_enabled_ GUARDED_BY(crit_capture_); |
| 95 bool extended_filter_enabled_ GUARDED_BY(crit_capture_); | 96 bool extended_filter_enabled_ GUARDED_BY(crit_capture_); |
| 96 bool delay_agnostic_enabled_ GUARDED_BY(crit_capture_); | 97 bool delay_agnostic_enabled_ GUARDED_BY(crit_capture_); |
| 97 bool next_generation_aec_enabled_ GUARDED_BY(crit_capture_); | 98 bool next_generation_aec_enabled_ GUARDED_BY(crit_capture_); |
| 99 bool refined_adaptive_filter_enabled_ GUARDED_BY(crit_capture_) = false; |
| 98 | 100 |
| 99 size_t render_queue_element_max_size_ GUARDED_BY(crit_render_) | 101 size_t render_queue_element_max_size_ GUARDED_BY(crit_render_) |
| 100 GUARDED_BY(crit_capture_); | 102 GUARDED_BY(crit_capture_); |
| 101 std::vector<float> render_queue_buffer_ GUARDED_BY(crit_render_); | 103 std::vector<float> render_queue_buffer_ GUARDED_BY(crit_render_); |
| 102 std::vector<float> capture_queue_buffer_ GUARDED_BY(crit_capture_); | 104 std::vector<float> capture_queue_buffer_ GUARDED_BY(crit_capture_); |
| 103 | 105 |
| 104 // Lock protection not needed. | 106 // Lock protection not needed. |
| 105 std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> | 107 std::unique_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> |
| 106 render_signal_queue_; | 108 render_signal_queue_; |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 } // namespace webrtc | 111 } // namespace webrtc |
| 110 | 112 |
| 111 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ | 113 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ |
| OLD | NEW |