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:
@@ -540,6 +540,7 @@ class FakeWebRtcVoiceEngine
|
||||
codec = channels_[channel]->send_codec;
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(SetBitRate, (int channel, int bitrate_bps));
|
||||
WEBRTC_FUNC(GetRecCodec, (int channel, webrtc::CodecInst& codec)) {
|
||||
WEBRTC_CHECK_CHANNEL(channel);
|
||||
const Channel* c = channels_[channel];
|
||||
|
||||
Reference in New Issue
Block a user