Index: webrtc/modules/pacing/paced_sender.h |
diff --git a/webrtc/modules/pacing/paced_sender.h b/webrtc/modules/pacing/paced_sender.h |
index e04fafdbb4741518aed35ecccb9f423cc11c82f8..e56fbd9571cb3e76202d32c54d0452e54d41caa7 100644 |
--- a/webrtc/modules/pacing/paced_sender.h |
+++ b/webrtc/modules/pacing/paced_sender.h |
@@ -114,6 +114,12 @@ class PacedSender : public Module, public RtpPacketSender { |
size_t bytes, |
bool retransmission) override; |
+ // Currently audio traffic is not accounted by pacer and passed through. |
+ // With the introduction of audio BWE audio traffic will be accounted for |
+ // the pacer budget calculation. The audio traffic still will be injected |
+ // at high priority. |
+ void AccountForAudioPackets(bool account_for_audio) override; |
+ |
// Returns the time since the oldest queued packet was enqueued. |
virtual int64_t QueueInMs() const; |
@@ -193,6 +199,7 @@ class PacedSender : public Module, public RtpPacketSender { |
std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); |
uint64_t packet_counter_; |
ProcessThread* process_thread_ = nullptr; |
+ bool account_for_audio_ GUARDED_BY(critsect_); |
}; |
} // namespace webrtc |
#endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ |