Added SetBitRate function to VoE API to allow changing the audio bitrate.
If the requested bitrate is not valid for the codec, the codec will decide on an appropriate value. Updated VoE command line tool to use new SetBitRate function. Includes unittests for SetBitRate function. BUG= R=henrik.lundin@webrtc.org, henrika@webrtc.org, kwiberg@webrtc.org, pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/50789004 Cr-Commit-Position: refs/heads/master@{#9115}
This commit is contained in:
@ -263,6 +263,11 @@ class AudioCodingModule {
|
||||
//
|
||||
virtual int32_t SendBitrate() const = 0;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Sets the bitrate to the specified value in bits/sec. If the value is not
|
||||
// supported by the codec, it will choose another appropriate value.
|
||||
virtual void SetBitRate(int bitrate_bps) = 0;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// int32_t SetReceivedEstimatedBandwidth()
|
||||
// Set available bandwidth [bits/sec] of the up-link channel.
|
||||
|
||||
Reference in New Issue
Block a user