aboutsummaryrefslogtreecommitdiff
path: root/audio/audio_receive_stream.cc
diff options
context:
space:
mode:
authorIvo Creusen <ivoc@webrtc.org>2019-11-01 11:47:51 +0100
committerCommit Bot <commit-bot@chromium.org>2019-11-01 11:30:36 +0000
commitc3d1f9b0cd990464c15155247b7f4c7d6ee5b301 (patch)
tree7e80f090bc5c5db57819e0cd08b2e73c403b6293 /audio/audio_receive_stream.cc
parent2ebbff83eef7db5a3c70b8378aaabafa0a11099a (diff)
downloadwebrtc-c3d1f9b0cd990464c15155247b7f4c7d6ee5b301.tar.gz
Enable injection of a custom NetEqFactory into PeerConnectionFactory.
Injecting both a custom NetEqFactory and an AudioDecoderFactory is not supported, in that case the AudioDecoderFactory should be wrapped inside the NetEqFactory. Bug: webrtc:11005 Change-Id: I4e311eb1bfa03c91bca587d70540e81829f881c9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/158720 Commit-Queue: Ivo Creusen <ivoc@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29673}
Diffstat (limited to 'audio/audio_receive_stream.cc')
-rw-r--r--audio/audio_receive_stream.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/audio_receive_stream.cc b/audio/audio_receive_stream.cc
index c6291c7cf6..e1041beb84 100644
--- a/audio/audio_receive_stream.cc
+++ b/audio/audio_receive_stream.cc
@@ -70,13 +70,15 @@ std::unique_ptr<voe::ChannelReceiveInterface> CreateChannelReceive(
Clock* clock,
webrtc::AudioState* audio_state,
ProcessThread* module_process_thread,
+ NetEqFactory* neteq_factory,
const webrtc::AudioReceiveStream::Config& config,
RtcEventLog* event_log) {
RTC_DCHECK(audio_state);
internal::AudioState* internal_audio_state =
static_cast<internal::AudioState*>(audio_state);
return voe::CreateChannelReceive(
- clock, module_process_thread, internal_audio_state->audio_device_module(),
+ clock, module_process_thread, neteq_factory,
+ internal_audio_state->audio_device_module(),
config.media_transport_config, config.rtcp_send_transport, event_log,
config.rtp.local_ssrc, config.rtp.remote_ssrc,
config.jitter_buffer_max_packets, config.jitter_buffer_fast_accelerate,
@@ -91,6 +93,7 @@ AudioReceiveStream::AudioReceiveStream(
RtpStreamReceiverControllerInterface* receiver_controller,
PacketRouter* packet_router,
ProcessThread* module_process_thread,
+ NetEqFactory* neteq_factory,
const webrtc::AudioReceiveStream::Config& config,
const rtc::scoped_refptr<webrtc::AudioState>& audio_state,
webrtc::RtcEventLog* event_log)
@@ -103,6 +106,7 @@ AudioReceiveStream::AudioReceiveStream(
CreateChannelReceive(clock,
audio_state.get(),
module_process_thread,
+ neteq_factory,
config,
event_log)) {}