Lines Matching refs:new_config
195 const webrtc::AudioSendStream::Config& new_config) { in Reconfigure() argument
197 ConfigureStream(new_config, false); in Reconfigure()
228 const webrtc::AudioSendStream::Config& new_config, in ConfigureStream() argument
231 << new_config.ToString(); in ConfigureStream()
232 UpdateEventLogStreamConfig(event_log_, new_config, in ConfigureStream()
239 old_config.send_transport == new_config.send_transport); in ConfigureStream()
240 RTC_DCHECK(first_time || old_config.rtp.ssrc == new_config.rtp.ssrc); in ConfigureStream()
244 if (first_time || old_config.rtp.c_name != new_config.rtp.c_name) { in ConfigureStream()
245 channel_send_->SetRTCP_CNAME(new_config.rtp.c_name); in ConfigureStream()
249 if (first_time || new_config.frame_encryptor != old_config.frame_encryptor) { in ConfigureStream()
250 channel_send_->SetFrameEncryptor(new_config.frame_encryptor); in ConfigureStream()
254 new_config.frame_transformer != old_config.frame_transformer) { in ConfigureStream()
256 new_config.frame_transformer); in ConfigureStream()
260 new_config.rtp.extmap_allow_mixed != old_config.rtp.extmap_allow_mixed) { in ConfigureStream()
261 rtp_rtcp_module_->SetExtmapAllowMixed(new_config.rtp.extmap_allow_mixed); in ConfigureStream()
265 const ExtensionIds new_ids = FindExtensionIds(new_config.rtp.extensions); in ConfigureStream()
311 new_config.rtp.mid != old_config.rtp.mid) && in ConfigureStream()
312 new_ids.mid != 0 && !new_config.rtp.mid.empty()) { in ConfigureStream()
314 rtp_rtcp_module_->SetMid(new_config.rtp.mid); in ConfigureStream()
320 new_config.rtp.rid != old_config.rtp.rid)) { in ConfigureStream()
322 if (new_config.rtp.rid.empty()) { in ConfigureStream()
332 rtp_rtcp_module_->SetRid(new_config.rtp.rid); in ConfigureStream()
344 if (!ReconfigureSendCodec(new_config)) { in ConfigureStream()
366 ReconfigureBitrateObserver(new_config); in ConfigureStream()
368 config_ = new_config; in ConfigureStream()
616 bool AudioSendStream::SetupSendCodec(const Config& new_config) { in SetupSendCodec() argument
617 RTC_DCHECK(new_config.send_codec_spec); in SetupSendCodec()
618 const auto& spec = *new_config.send_codec_spec; in SetupSendCodec()
620 RTC_DCHECK(new_config.encoder_factory); in SetupSendCodec()
622 new_config.encoder_factory->MakeAudioEncoder( in SetupSendCodec()
623 spec.payload_type, spec.format, new_config.codec_pair_id); in SetupSendCodec()
638 if (new_config.audio_network_adaptor_config) { in SetupSendCodec()
640 *new_config.audio_network_adaptor_config, event_log_)) { in SetupSendCodec()
642 << new_config.rtp.ssrc; in SetupSendCodec()
645 << new_config.rtp.ssrc; in SetupSendCodec()
659 new_config.send_codec_spec->format.clockrate_hz); in SetupSendCodec()
681 channel_send_->SetEncoder(new_config.send_codec_spec->payload_type, in SetupSendCodec()
687 bool AudioSendStream::ReconfigureSendCodec(const Config& new_config) { in ReconfigureSendCodec() argument
690 if (!new_config.send_codec_spec) { in ReconfigureSendCodec()
697 if (new_config.send_codec_spec == old_config.send_codec_spec && in ReconfigureSendCodec()
698 new_config.audio_network_adaptor_config == in ReconfigureSendCodec()
706 new_config.send_codec_spec->format != in ReconfigureSendCodec()
708 new_config.send_codec_spec->payload_type != in ReconfigureSendCodec()
710 return SetupSendCodec(new_config); in ReconfigureSendCodec()
714 new_config.send_codec_spec->target_bitrate_bps; in ReconfigureSendCodec()
725 ReconfigureANA(new_config); in ReconfigureSendCodec()
726 ReconfigureCNG(new_config); in ReconfigureSendCodec()
731 void AudioSendStream::ReconfigureANA(const Config& new_config) { in ReconfigureANA() argument
732 if (new_config.audio_network_adaptor_config == in ReconfigureANA()
736 if (new_config.audio_network_adaptor_config) { in ReconfigureANA()
739 *new_config.audio_network_adaptor_config, event_log_)) { in ReconfigureANA()
741 << new_config.rtp.ssrc; in ReconfigureANA()
744 << new_config.rtp.ssrc; in ReconfigureANA()
751 << new_config.rtp.ssrc; in ReconfigureANA()
755 void AudioSendStream::ReconfigureCNG(const Config& new_config) { in ReconfigureCNG() argument
756 if (new_config.send_codec_spec->cng_payload_type == in ReconfigureCNG()
763 if (new_config.send_codec_spec->cng_payload_type) { in ReconfigureCNG()
764 RegisterCngPayloadType(*new_config.send_codec_spec->cng_payload_type, in ReconfigureCNG()
765 new_config.send_codec_spec->format.clockrate_hz); in ReconfigureCNG()
781 if (new_config.send_codec_spec->cng_payload_type) { in ReconfigureCNG()
785 config.payload_type = *new_config.send_codec_spec->cng_payload_type; in ReconfigureCNG()
795 const webrtc::AudioSendStream::Config& new_config) { in ReconfigureBitrateObserver() argument
801 if (config_.min_bitrate_bps == new_config.min_bitrate_bps && in ReconfigureBitrateObserver()
802 config_.max_bitrate_bps == new_config.max_bitrate_bps && in ReconfigureBitrateObserver()
803 config_.bitrate_priority == new_config.bitrate_priority && in ReconfigureBitrateObserver()
804 (TransportSeqNumId(config_) == TransportSeqNumId(new_config) || in ReconfigureBitrateObserver()
807 new_config.audio_network_adaptor_config) { in ReconfigureBitrateObserver()
811 if (!new_config.has_dscp && new_config.min_bitrate_bps != -1 && in ReconfigureBitrateObserver()
812 new_config.max_bitrate_bps != -1 && TransportSeqNumId(new_config) != 0) { in ReconfigureBitrateObserver()
822 config_.min_bitrate_bps = new_config.min_bitrate_bps; in ReconfigureBitrateObserver()
823 config_.max_bitrate_bps = new_config.max_bitrate_bps; in ReconfigureBitrateObserver()
825 config_.bitrate_priority = new_config.bitrate_priority; in ReconfigureBitrateObserver()