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:
Ivo Creusen
2015-04-29 16:03:33 +02:00
parent 23fba1ffa0
commit adf89b7e33
14 changed files with 241 additions and 17 deletions

View File

@ -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.