2019-11-26 12:29:05 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2024-09-27 07:18:06 +00:00
|
|
|
#include "api/neteq/default_neteq_factory.h"
|
2019-11-26 12:29:05 +01:00
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
2024-08-12 12:50:44 +02:00
|
|
|
#include "api/environment/environment.h"
|
2019-11-26 12:29:05 +01:00
|
|
|
#include "modules/audio_coding/neteq/neteq_impl.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
DefaultNetEqFactory::DefaultNetEqFactory() = default;
|
|
|
|
|
DefaultNetEqFactory::~DefaultNetEqFactory() = default;
|
|
|
|
|
|
2024-08-12 12:50:44 +02:00
|
|
|
std::unique_ptr<NetEq> DefaultNetEqFactory::Create(
|
|
|
|
|
const Environment& env,
|
2019-11-26 12:29:05 +01:00
|
|
|
const NetEq::Config& config,
|
2024-08-12 12:50:44 +02:00
|
|
|
scoped_refptr<AudioDecoderFactory> decoder_factory) const {
|
2019-11-26 12:29:05 +01:00
|
|
|
return std::make_unique<NetEqImpl>(
|
2024-08-12 12:50:44 +02:00
|
|
|
config, NetEqImpl::Dependencies(env, config, std::move(decoder_factory),
|
2019-11-26 12:29:05 +01:00
|
|
|
controller_factory_));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|