Index: webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc |
diff --git a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc |
index 07db78c911f47af743785437a7b3f7b32fb0b321..51b706490b020eefbbc43d455118c5170fef9ec7 100644 |
--- a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc |
+++ b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.cc |
@@ -115,17 +115,20 @@ void AudioEncoderCopyRed::SetMaxPlaybackRate(int frequency_hz) { |
speech_encoder_->SetMaxPlaybackRate(frequency_hz); |
} |
-void AudioEncoderCopyRed::SetProjectedPacketLossRate(double fraction) { |
- speech_encoder_->SetProjectedPacketLossRate(fraction); |
+rtc::ArrayView<std::unique_ptr<AudioEncoder>> |
+AudioEncoderCopyRed::ReclaimContainedEncoders() { |
+ return rtc::ArrayView<std::unique_ptr<AudioEncoder>>(&speech_encoder_, 1); |
} |
-void AudioEncoderCopyRed::SetTargetBitrate(int bits_per_second) { |
- speech_encoder_->SetTargetBitrate(bits_per_second); |
+void AudioEncoderCopyRed::OnReceivedUplinkPacketLossFraction( |
+ float uplink_packet_loss_fraction) { |
+ speech_encoder_->OnReceivedUplinkPacketLossFraction( |
+ uplink_packet_loss_fraction); |
} |
-rtc::ArrayView<std::unique_ptr<AudioEncoder>> |
-AudioEncoderCopyRed::ReclaimContainedEncoders() { |
- return rtc::ArrayView<std::unique_ptr<AudioEncoder>>(&speech_encoder_, 1); |
+void AudioEncoderCopyRed::OnReceivedTargetAudioBitrate( |
+ int target_audio_bitrate_bps) { |
+ speech_encoder_->OnReceivedTargetAudioBitrate(target_audio_bitrate_bps); |
} |
} // namespace webrtc |