Chromium Code Reviews

Unified Diff: webrtc/modules/audio_coding/codecs/audio_encoder.h

Issue 2661043003: Allow ANA to receive RPLR (recoverable packet loss rate) indications (Closed)
Patch Set: Rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/modules/audio_coding/codecs/audio_encoder.h
diff --git a/webrtc/modules/audio_coding/codecs/audio_encoder.h b/webrtc/modules/audio_coding/codecs/audio_encoder.h
index 00b7f4619e74f845c0f695104c7bcb1a5ed5c4c5..1cc55fa319403f8fd556d083b780b0043a0d871d 100644
--- a/webrtc/modules/audio_coding/codecs/audio_encoder.h
+++ b/webrtc/modules/audio_coding/codecs/audio_encoder.h
@@ -175,6 +175,13 @@ class AudioEncoder {
virtual void OnReceivedUplinkPacketLossFraction(
const rtc::Optional<float>& uplink_packet_loss_fraction);
+ // Provides 1st-order-FEC-recoverable uplink packet loss rate to this encoder
+ // to allow it to adapt.
+ // |uplink_recoverable_packet_loss_fraction| is in the range [0.0, 1.0] or
+ // unknown.
+ virtual void OnReceivedUplinkRecoverablePacketLossFraction(
+ const rtc::Optional<float>& uplink_recoverable_packet_loss_fraction);
+
// Provides target audio bitrate to this encoder to allow it to adapt.
virtual void OnReceivedTargetAudioBitrate(int target_bps);

Powered by Google App Engine