1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #ifndef API_NETEQ_NETEQ_FACTORY_H_ 12*d9f75844SAndroid Build Coastguard Worker #define API_NETEQ_NETEQ_FACTORY_H_ 13*d9f75844SAndroid Build Coastguard Worker 14*d9f75844SAndroid Build Coastguard Worker #include <memory> 15*d9f75844SAndroid Build Coastguard Worker 16*d9f75844SAndroid Build Coastguard Worker #include "api/audio_codecs/audio_decoder_factory.h" 17*d9f75844SAndroid Build Coastguard Worker #include "api/neteq/neteq.h" 18*d9f75844SAndroid Build Coastguard Worker #include "system_wrappers/include/clock.h" 19*d9f75844SAndroid Build Coastguard Worker 20*d9f75844SAndroid Build Coastguard Worker namespace webrtc { 21*d9f75844SAndroid Build Coastguard Worker 22*d9f75844SAndroid Build Coastguard Worker // Creates NetEq instances using the settings provided in the config struct. 23*d9f75844SAndroid Build Coastguard Worker class NetEqFactory { 24*d9f75844SAndroid Build Coastguard Worker public: 25*d9f75844SAndroid Build Coastguard Worker virtual ~NetEqFactory() = default; 26*d9f75844SAndroid Build Coastguard Worker 27*d9f75844SAndroid Build Coastguard Worker // Creates a new NetEq object, with parameters set in `config`. The `config` 28*d9f75844SAndroid Build Coastguard Worker // object will only have to be valid for the duration of the call to this 29*d9f75844SAndroid Build Coastguard Worker // method. 30*d9f75844SAndroid Build Coastguard Worker virtual std::unique_ptr<NetEq> CreateNetEq( 31*d9f75844SAndroid Build Coastguard Worker const NetEq::Config& config, 32*d9f75844SAndroid Build Coastguard Worker const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory, 33*d9f75844SAndroid Build Coastguard Worker Clock* clock) const = 0; 34*d9f75844SAndroid Build Coastguard Worker }; 35*d9f75844SAndroid Build Coastguard Worker 36*d9f75844SAndroid Build Coastguard Worker } // namespace webrtc 37*d9f75844SAndroid Build Coastguard Worker #endif // API_NETEQ_NETEQ_FACTORY_H_ 38