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 9025834dfa78704d16f00aed0b5bfe091eda86d7..fe6fd87dfd791b53247bd26cc59fbd73a08f3187 100644 |
--- a/webrtc/modules/audio_coding/codecs/audio_encoder.h |
+++ b/webrtc/modules/audio_coding/codecs/audio_encoder.h |
@@ -96,6 +96,11 @@ class AudioEncoder { |
// Num10MsFramesInNextPacket(). |
virtual int Max10MsFramesInAPacket() const = 0; |
+ // Returns the current target bitrate in bits/s. The value -1 means that the |
+ // codec adapts the target automatically, and a current target cannot be |
+ // provided. |
+ virtual int GetTargetBitrate() const = 0; |
+ |
// Changes the target bitrate. The implementation is free to alter this value, |
// e.g., if the desired value is outside the valid range. |
virtual void SetTargetBitrate(int bits_per_second) {} |