blob: 7e2c143c6663368280c115206480a27ec3fa245d [file] [log] [blame]
Gustaf Ullbergc453c162018-02-16 12:09:55 +01001/*
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
Gustaf Ullberg0efa9412018-02-27 13:58:45 +010012#include <memory>
13
14#include "modules/audio_processing/aec3/echo_canceller3.h"
15#include "rtc_base/ptr_util.h"
16
17namespace webrtc {
18
19EchoCanceller3Factory::EchoCanceller3Factory() {}
20
21EchoCanceller3Factory::EchoCanceller3Factory(const EchoCanceller3Config& config)
22 : config_(config) {}
23
24std::unique_ptr<EchoControl> EchoCanceller3Factory::Create(int sample_rate_hz) {
25 return rtc::MakeUnique<EchoCanceller3>(config_, sample_rate_hz, true);
26}
27} // namespace webrtc