Gustaf Ullberg | c453c16 | 2018-02-16 12:09:55 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef API_AUDIO_ECHO_CANCELLER3_FACTORY_H_ |
| 12 | #define API_AUDIO_ECHO_CANCELLER3_FACTORY_H_ |
| 13 | |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 14 | #include <memory> |
| 15 | |
Gustaf Ullberg | c453c16 | 2018-02-16 12:09:55 +0100 | [diff] [blame] | 16 | #include "api/audio/echo_canceller3_config.h" |
| 17 | #include "api/audio/echo_control.h" |
Mirko Bonadei | 3d25530 | 2018-10-11 10:50:45 +0200 | [diff] [blame] | 18 | #include "rtc_base/system/rtc_export.h" |
Gustaf Ullberg | c453c16 | 2018-02-16 12:09:55 +0100 | [diff] [blame] | 19 | |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 20 | namespace webrtc { |
| 21 | |
Mirko Bonadei | 3d25530 | 2018-10-11 10:50:45 +0200 | [diff] [blame] | 22 | class RTC_EXPORT EchoCanceller3Factory : public EchoControlFactory { |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 23 | public: |
| 24 | // Factory producing EchoCanceller3 instances with the default configuration. |
| 25 | EchoCanceller3Factory(); |
| 26 | |
| 27 | // Factory producing EchoCanceller3 instances with the specified |
| 28 | // configuration. |
| 29 | explicit EchoCanceller3Factory(const EchoCanceller3Config& config); |
| 30 | |
Gustaf Ullberg | 2c6f373 | 2019-11-07 17:15:12 +0100 | [diff] [blame] | 31 | // Creates an EchoCanceller3 with a specified channel count and sampling rate. |
Per Ã…hgren | 4e5c709 | 2019-11-01 20:44:11 +0100 | [diff] [blame] | 32 | std::unique_ptr<EchoControl> Create(int sample_rate_hz, |
| 33 | int num_render_channels, |
| 34 | int num_capture_channels) override; |
| 35 | |
Gustaf Ullberg | 0efa941 | 2018-02-27 13:58:45 +0100 | [diff] [blame] | 36 | private: |
| 37 | const EchoCanceller3Config config_; |
| 38 | }; |
| 39 | } // namespace webrtc |
Gustaf Ullberg | c453c16 | 2018-02-16 12:09:55 +0100 | [diff] [blame] | 40 | |
| 41 | #endif // API_AUDIO_ECHO_CANCELLER3_FACTORY_H_ |