Connected jitter_buffer_min_delay_ms to DelayManager's min_delay_ms by setting the neteq_config

Bug: None
Change-Id: I1f234513e1a75b75fc8fed3de2df84dc60fdeb06
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/309842
Reviewed-by: Jakob Ivarsson‎ <jakobi@webrtc.org>
Commit-Queue: Jakob Ivarsson‎ <jakobi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40346}
This commit is contained in:
anurag 2023-06-21 20:45:04 -07:00 committed by WebRTC LUCI CQ
parent dcf600d7a5
commit 48a2af35e1

View File

@ -70,7 +70,8 @@ acm2::AcmReceiver::Config AcmConfig(
rtc::scoped_refptr<AudioDecoderFactory> decoder_factory, rtc::scoped_refptr<AudioDecoderFactory> decoder_factory,
absl::optional<AudioCodecPairId> codec_pair_id, absl::optional<AudioCodecPairId> codec_pair_id,
size_t jitter_buffer_max_packets, size_t jitter_buffer_max_packets,
bool jitter_buffer_fast_playout) { bool jitter_buffer_fast_playout,
int jitter_buffer_min_delay_ms) {
acm2::AcmReceiver::Config acm_config; acm2::AcmReceiver::Config acm_config;
acm_config.neteq_factory = neteq_factory; acm_config.neteq_factory = neteq_factory;
acm_config.decoder_factory = decoder_factory; acm_config.decoder_factory = decoder_factory;
@ -78,6 +79,7 @@ acm2::AcmReceiver::Config AcmConfig(
acm_config.neteq_config.max_packets_in_buffer = jitter_buffer_max_packets; acm_config.neteq_config.max_packets_in_buffer = jitter_buffer_max_packets;
acm_config.neteq_config.enable_fast_accelerate = jitter_buffer_fast_playout; acm_config.neteq_config.enable_fast_accelerate = jitter_buffer_fast_playout;
acm_config.neteq_config.enable_muted_state = true; acm_config.neteq_config.enable_muted_state = true;
acm_config.neteq_config.min_delay_ms = jitter_buffer_min_delay_ms;
return acm_config; return acm_config;
} }
@ -551,7 +553,8 @@ ChannelReceive::ChannelReceive(
decoder_factory, decoder_factory,
codec_pair_id, codec_pair_id,
jitter_buffer_max_packets, jitter_buffer_max_packets,
jitter_buffer_fast_playout)), jitter_buffer_fast_playout,
jitter_buffer_min_delay_ms)),
_outputAudioLevel(), _outputAudioLevel(),
clock_(clock), clock_(clock),
ntp_estimator_(clock), ntp_estimator_(clock),