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 10 matching lines...) Expand all Loading... |
21 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" | 21 #include "webrtc/modules/audio_processing/render_queue_item_verifier.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 class AudioBuffer; | 25 class AudioBuffer; |
26 | 26 |
27 class EchoCancellationImpl : public EchoCancellation { | 27 class EchoCancellationImpl : public EchoCancellation { |
28 public: | 28 public: |
29 EchoCancellationImpl(rtc::CriticalSection* crit_render, | 29 EchoCancellationImpl(rtc::CriticalSection* crit_render, |
30 rtc::CriticalSection* crit_capture); | 30 rtc::CriticalSection* crit_capture); |
31 virtual ~EchoCancellationImpl(); | 31 ~EchoCancellationImpl() override; |
32 | 32 |
33 int ProcessRenderAudio(const AudioBuffer* audio); | 33 int ProcessRenderAudio(const AudioBuffer* audio); |
34 int ProcessCaptureAudio(AudioBuffer* audio, int stream_delay_ms); | 34 int ProcessCaptureAudio(AudioBuffer* audio, int stream_delay_ms); |
35 | 35 |
36 // EchoCancellation implementation. | 36 // EchoCancellation implementation. |
37 bool is_enabled() const override; | 37 bool is_enabled() const override; |
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 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 std::vector<std::unique_ptr<Canceller>> cancellers_; | 117 std::vector<std::unique_ptr<Canceller>> cancellers_; |
118 std::unique_ptr<StreamProperties> stream_properties_; | 118 std::unique_ptr<StreamProperties> stream_properties_; |
119 | 119 |
120 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCancellationImpl); | 120 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCancellationImpl); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace webrtc | 123 } // namespace webrtc |
124 | 124 |
125 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ | 125 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ |
OLD | NEW |