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 
14 #include <memory>
15 
16 #include "api/audio/echo_canceller3_config.h"
17 #include "api/audio/echo_control.h"
18 #include "rtc_base/system/rtc_export.h"
19 
20 namespace webrtc {
21 
22 class RTC_EXPORT EchoCanceller3Factory : public EchoControlFactory {
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 
31   // Creates an EchoCanceller3 with a specified channel count and sampling rate.
32   std::unique_ptr<EchoControl> Create(int sample_rate_hz,
33                                       int num_render_channels,
34                                       int num_capture_channels) override;
35 
36  private:
37   const EchoCanceller3Config config_;
38 };
39 }  // namespace webrtc
40 
41 #endif  // API_AUDIO_ECHO_CANCELLER3_FACTORY_H_
42