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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 void Initialize(int sample_rate_hz, | 42 void Initialize(int sample_rate_hz, |
43 size_t num_reverse_channels_, | 43 size_t num_reverse_channels_, |
44 size_t num_output_channels_, | 44 size_t num_output_channels_, |
45 size_t num_proc_channels_); | 45 size_t num_proc_channels_); |
46 void SetExtraOptions(const Config& config); | 46 void SetExtraOptions(const Config& config); |
47 bool is_delay_agnostic_enabled() const; | 47 bool is_delay_agnostic_enabled() const; |
48 bool is_extended_filter_enabled() const; | 48 bool is_extended_filter_enabled() const; |
49 bool is_aec3_enabled() const; | 49 bool is_aec3_enabled() const; |
50 | 50 |
| 51 // Checks whether the module is enabled. Must only be |
| 52 // called from the render side of APM as otherwise |
| 53 // deadlocks may occur. |
| 54 bool is_enabled_render_side_query() const; |
| 55 |
51 // Reads render side data that has been queued on the render call. | 56 // Reads render side data that has been queued on the render call. |
52 // Called holding the capture lock. | 57 // Called holding the capture lock. |
53 void ReadQueuedRenderData(); | 58 void ReadQueuedRenderData(); |
54 | 59 |
55 // Returns the system delay of the first AEC component. | 60 // Returns the system delay of the first AEC component. |
56 int GetSystemDelayInSamples() const; | 61 int GetSystemDelayInSamples() const; |
57 | 62 |
58 private: | 63 private: |
59 class Canceller; | 64 class Canceller; |
60 struct StreamProperties; | 65 struct StreamProperties; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 113 |
109 std::vector<std::unique_ptr<Canceller>> cancellers_; | 114 std::vector<std::unique_ptr<Canceller>> cancellers_; |
110 std::unique_ptr<StreamProperties> stream_properties_; | 115 std::unique_ptr<StreamProperties> stream_properties_; |
111 | 116 |
112 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCancellationImpl); | 117 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCancellationImpl); |
113 }; | 118 }; |
114 | 119 |
115 } // namespace webrtc | 120 } // namespace webrtc |
116 | 121 |
117 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ | 122 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ |
OLD | NEW |