Adding OnReceivedOverhead to AudioEncoder.

BUG=webrtc:6762

Review-Url: https://codereview.webrtc.org/2528933002
Cr-Commit-Position: refs/heads/master@{#15457}
This commit is contained in:
minyue
2016-12-07 01:40:34 -08:00
committed by Commit bot
parent ac382f3adc
commit eca373f3ba
5 changed files with 121 additions and 8 deletions

View File

@ -181,6 +181,10 @@ class AudioEncoder {
// Provides RTT to this encoder to allow it to adapt.
virtual void OnReceivedRtt(int rtt_ms);
// Provides overhead to this encoder to adapt. The overhead is the number of
// bytes that will be added to each packet the encoder generates.
virtual void OnReceivedOverhead(size_t overhead_bytes_per_packet);
// To allow encoder to adapt its frame length, it must be provided the frame
// length range that receivers can accept.
virtual void SetReceiverFrameLengthRange(int min_frame_length_ms,