Index: webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc |
diff --git a/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc b/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc |
index fe1b9de683c2678a75e8b462b972a87c73af67f8..1beebd522dadf361c540b0a2aa6e0b5a450eb9e8 100644 |
--- a/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc |
+++ b/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng.cc |
@@ -179,17 +179,20 @@ void AudioEncoderCng::SetMaxPlaybackRate(int frequency_hz) { |
speech_encoder_->SetMaxPlaybackRate(frequency_hz); |
} |
-void AudioEncoderCng::SetProjectedPacketLossRate(double fraction) { |
- speech_encoder_->SetProjectedPacketLossRate(fraction); |
+rtc::ArrayView<std::unique_ptr<AudioEncoder>> |
+AudioEncoderCng::ReclaimContainedEncoders() { |
+ return rtc::ArrayView<std::unique_ptr<AudioEncoder>>(&speech_encoder_, 1); |
} |
-void AudioEncoderCng::SetTargetBitrate(int bits_per_second) { |
- speech_encoder_->SetTargetBitrate(bits_per_second); |
+void AudioEncoderCng::OnReceivedUplinkPacketLossFraction( |
+ float uplink_packet_loss_fraction) { |
+ speech_encoder_->OnReceivedUplinkPacketLossFraction( |
+ uplink_packet_loss_fraction); |
} |
-rtc::ArrayView<std::unique_ptr<AudioEncoder>> |
-AudioEncoderCng::ReclaimContainedEncoders() { |
- return rtc::ArrayView<std::unique_ptr<AudioEncoder>>(&speech_encoder_, 1); |
+void AudioEncoderCng::OnReceivedTargetAudioBitrate( |
+ int target_audio_bitrate_bps) { |
+ speech_encoder_->OnReceivedTargetAudioBitrate(target_audio_bitrate_bps); |
} |
AudioEncoder::EncodedInfo AudioEncoderCng::EncodePassive( |