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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 class AudioBuffer; | 25 class AudioBuffer; |
26 | 26 |
27 class EchoControlMobileImpl : public EchoControlMobile { | 27 class EchoControlMobileImpl : public EchoControlMobile { |
28 public: | 28 public: |
29 EchoControlMobileImpl(rtc::CriticalSection* crit_render, | 29 EchoControlMobileImpl(rtc::CriticalSection* crit_render, |
30 rtc::CriticalSection* crit_capture); | 30 rtc::CriticalSection* crit_capture); |
31 | 31 |
32 virtual ~EchoControlMobileImpl(); | 32 ~EchoControlMobileImpl() override; |
33 | 33 |
34 int ProcessRenderAudio(const AudioBuffer* audio); | 34 int ProcessRenderAudio(const AudioBuffer* audio); |
35 int ProcessCaptureAudio(AudioBuffer* audio, int stream_delay_ms); | 35 int ProcessCaptureAudio(AudioBuffer* audio, int stream_delay_ms); |
36 | 36 |
37 // EchoControlMobile implementation. | 37 // EchoControlMobile implementation. |
38 bool is_enabled() const override; | 38 bool is_enabled() const override; |
39 RoutingMode routing_mode() const override; | 39 RoutingMode routing_mode() const override; |
40 bool is_comfort_noise_enabled() const override; | 40 bool is_comfort_noise_enabled() const override; |
41 | 41 |
42 void Initialize(int sample_rate_hz, | 42 void Initialize(int sample_rate_hz, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 render_signal_queue_; | 89 render_signal_queue_; |
90 | 90 |
91 std::vector<std::unique_ptr<Canceller>> cancellers_; | 91 std::vector<std::unique_ptr<Canceller>> cancellers_; |
92 std::unique_ptr<StreamProperties> stream_properties_; | 92 std::unique_ptr<StreamProperties> stream_properties_; |
93 | 93 |
94 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoControlMobileImpl); | 94 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoControlMobileImpl); |
95 }; | 95 }; |
96 } // namespace webrtc | 96 } // namespace webrtc |
97 | 97 |
98 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CONTROL_MOBILE_IMPL_H_ | 98 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CONTROL_MOBILE_IMPL_H_ |
OLD | NEW |