Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: webrtc/pc/peerconnectionfactory.cc

Issue 2695243005: Injectable audio encoders: BuiltinAudioEncoderFactory (Closed)
Patch Set: Fix build problems on Windows, Android and downstream. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/pc/DEPS ('k') | webrtc/pc/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/pc/peerconnectionfactory.h" 11 #include "webrtc/pc/peerconnectionfactory.h"
12 12
13 #include <utility> 13 #include <utility>
14 14
15 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" 15 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h"
16 #include "webrtc/api/mediaconstraintsinterface.h" 16 #include "webrtc/api/mediaconstraintsinterface.h"
17 #include "webrtc/api/mediastreamproxy.h" 17 #include "webrtc/api/mediastreamproxy.h"
18 #include "webrtc/api/mediastreamtrackproxy.h" 18 #include "webrtc/api/mediastreamtrackproxy.h"
19 #include "webrtc/api/peerconnectionfactoryproxy.h" 19 #include "webrtc/api/peerconnectionfactoryproxy.h"
20 #include "webrtc/api/peerconnectionproxy.h" 20 #include "webrtc/api/peerconnectionproxy.h"
21 #include "webrtc/api/videosourceproxy.h" 21 #include "webrtc/api/videosourceproxy.h"
22 #include "webrtc/base/bind.h" 22 #include "webrtc/base/bind.h"
23 #include "webrtc/base/checks.h" 23 #include "webrtc/base/checks.h"
24 #include "webrtc/media/engine/webrtcmediaengine.h" 24 #include "webrtc/media/engine/webrtcmediaengine.h"
25 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" 25 #include "webrtc/media/engine/webrtcvideodecoderfactory.h"
26 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" 26 #include "webrtc/media/engine/webrtcvideoencoderfactory.h"
27 #include "webrtc/modules/audio_coding/codecs/builtin_audio_encoder_factory.h"
27 #include "webrtc/modules/audio_device/include/audio_device.h" 28 #include "webrtc/modules/audio_device/include/audio_device.h"
28 #include "webrtc/p2p/base/basicpacketsocketfactory.h" 29 #include "webrtc/p2p/base/basicpacketsocketfactory.h"
29 #include "webrtc/p2p/client/basicportallocator.h" 30 #include "webrtc/p2p/client/basicportallocator.h"
30 #include "webrtc/pc/audiotrack.h" 31 #include "webrtc/pc/audiotrack.h"
31 #include "webrtc/pc/localaudiosource.h" 32 #include "webrtc/pc/localaudiosource.h"
32 #include "webrtc/pc/mediastream.h" 33 #include "webrtc/pc/mediastream.h"
33 #include "webrtc/pc/peerconnection.h" 34 #include "webrtc/pc/peerconnection.h"
34 #include "webrtc/pc/videocapturertracksource.h" 35 #include "webrtc/pc/videocapturertracksource.h"
35 #include "webrtc/pc/videotrack.h" 36 #include "webrtc/pc/videotrack.h"
36 37
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 PeerConnectionFactory::CreateMediaEngine_w() { 394 PeerConnectionFactory::CreateMediaEngine_w() {
394 RTC_DCHECK(worker_thread_ == rtc::Thread::Current()); 395 RTC_DCHECK(worker_thread_ == rtc::Thread::Current());
395 return std::unique_ptr<cricket::MediaEngineInterface>( 396 return std::unique_ptr<cricket::MediaEngineInterface>(
396 cricket::WebRtcMediaEngineFactory::Create( 397 cricket::WebRtcMediaEngineFactory::Create(
397 default_adm_.get(), audio_decoder_factory_, 398 default_adm_.get(), audio_decoder_factory_,
398 video_encoder_factory_.get(), video_decoder_factory_.get(), 399 video_encoder_factory_.get(), video_decoder_factory_.get(),
399 external_audio_mixer_)); 400 external_audio_mixer_));
400 } 401 }
401 402
402 } // namespace webrtc 403 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/pc/DEPS ('k') | webrtc/pc/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698