Index: webrtc/voice_engine/channel.h |
diff --git a/webrtc/voice_engine/channel.h b/webrtc/voice_engine/channel.h |
index 60e6f6040cd906f15c7a2b831db58d8b6be30580..c3d1d3b2e187a92e9bc241aa1f15e951d1bfeaf9 100644 |
--- a/webrtc/voice_engine/channel.h |
+++ b/webrtc/voice_engine/channel.h |
@@ -33,6 +33,7 @@ |
#include "webrtc/voice_engine/include/voe_base.h" |
#include "webrtc/voice_engine/include/voe_network.h" |
#include "webrtc/voice_engine/shared_data.h" |
+#include "webrtc/voice_engine/transport_feedback_packet_loss_tracker.h" |
#include "webrtc/voice_engine/voice_engine_defines.h" |
namespace rtc { |
@@ -376,8 +377,14 @@ class Channel |
// From OverheadObserver in the RTP/RTCP module |
void OnOverheadChanged(size_t overhead_bytes_per_packet) override; |
+ // Note: The existence of this function alongside OnUplinkPacketLossRate is |
+ // a compromise. We want the encoder to be agnostic of the PLR source, but |
+ // we also don't want it to receive conflicting information from TWCC and |
+ // from RTCP-XR. |
+ void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate); |
+ |
protected: |
- void OnIncomingFractionLoss(int fraction_lost); |
+ void OnUplinkPacketLossRate(float packet_loss_rate); |
private: |
bool InputMute() const; |
@@ -504,6 +511,8 @@ class Channel |
// TODO(ossu): Remove once GetAudioDecoderFactory() is no longer needed. |
rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
+ |
+ const bool use_twcc_plr_for_ana_; |
}; |
} // namespace voe |