• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "api/audio/echo_canceller3_factory.h"
11 
12 #include <memory>
13 
14 #include "modules/audio_processing/aec3/echo_canceller3.h"
15 
16 namespace webrtc {
17 
EchoCanceller3Factory()18 EchoCanceller3Factory::EchoCanceller3Factory() {}
19 
EchoCanceller3Factory(const EchoCanceller3Config & config)20 EchoCanceller3Factory::EchoCanceller3Factory(const EchoCanceller3Config& config)
21     : config_(config) {}
22 
Create(int sample_rate_hz,int num_render_channels,int num_capture_channels)23 std::unique_ptr<EchoControl> EchoCanceller3Factory::Create(
24     int sample_rate_hz,
25     int num_render_channels,
26     int num_capture_channels) {
27   return std::make_unique<EchoCanceller3>(
28       config_, sample_rate_hz, num_render_channels, num_capture_channels);
29 }
30 
31 }  // namespace webrtc
32