OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2017 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 #include "webrtc/api/audio/audio_mixer.h" |
| 12 #include "webrtc/api/audio_codecs/audio_decoder_factory.h" |
| 13 #include "webrtc/api/audio_codecs/audio_encoder_factory.h" |
| 14 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
| 15 #include "webrtc/api/audio_codecs/builtin_audio_encoder_factory.h" |
| 16 #include "webrtc/api/peerconnectioninterface.h" |
| 17 #include "webrtc/base/scoped_ref_ptr.h" |
| 18 #include "webrtc/base/thread.h" |
| 19 #include "webrtc/modules/audio_device/include/audio_device.h" |
| 20 |
| 21 namespace webrtc { |
| 22 |
| 23 rtc::scoped_refptr<PeerConnectionFactoryInterface> |
| 24 CreatePeerConnectionFactory() { |
| 25 return CreatePeerConnectionFactory(CreateBuiltinAudioEncoderFactory(), |
| 26 CreateBuiltinAudioDecoderFactory()); |
| 27 } |
| 28 |
| 29 rtc::scoped_refptr<PeerConnectionFactoryInterface> |
| 30 CreatePeerConnectionFactoryWithAudioMixer( |
| 31 rtc::Thread* network_thread, |
| 32 rtc::Thread* worker_thread, |
| 33 rtc::Thread* signaling_thread, |
| 34 AudioDeviceModule* default_adm, |
| 35 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
| 36 cricket::WebRtcVideoDecoderFactory* decoder_factory, |
| 37 rtc::scoped_refptr<AudioMixer> audio_mixer) { |
| 38 return CreatePeerConnectionFactoryWithAudioMixer( |
| 39 network_thread, worker_thread, signaling_thread, default_adm, |
| 40 CreateBuiltinAudioEncoderFactory(), CreateBuiltinAudioDecoderFactory(), |
| 41 encoder_factory, decoder_factory, audio_mixer); |
| 42 } |
| 43 |
| 44 } // namespace webrtc |
OLD | NEW |