Chromium Code Reviews| 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 47152f9eee1ae4f9532186b1ca69f56bcdf36b8f..a044fffa923992761dbc8ab070b16aed22cd5f69 100644 |
| --- a/webrtc/modules/audio_coding/codecs/audio_encoder.h |
| +++ b/webrtc/modules/audio_coding/codecs/audio_encoder.h |
| @@ -135,6 +135,16 @@ class AudioEncoder { |
| // returns false. |
| virtual bool GetDtx() const; |
| + // Enables or disablesCBR (constant bitrate mode). Returns |
|
minyue-webrtc
2017/03/30 20:36:17
nit: needs a space
|
| + // true if the codec was able to comply. The default implementation returns |
| + // true when asked to disable CBR and false when asked to enable it (meaning |
| + // that CBR isn't supported). |
| + virtual bool SetCbr(bool enable); |
| + |
| + // Returns the status of CBR. The default implementation always |
| + // returns false. |
| + virtual bool GetCbr() const; |
| + |
| // Sets the application mode. Returns true if the codec was able to comply. |
| // The default implementation just returns false. |
| enum class Application { kSpeech, kAudio }; |