| Index: webrtc/modules/audio_coding/codecs/isac/main/source/isac.c
|
| diff --git a/webrtc/modules/audio_coding/codecs/isac/main/source/isac.c b/webrtc/modules/audio_coding/codecs/isac/main/source/isac.c
|
| index a19fd01167c26e24b445b6d56e7f3021b3612d88..7a51a1e29212702f2bc7c3bd085a7646a02c1405 100644
|
| --- a/webrtc/modules/audio_coding/codecs/isac/main/source/isac.c
|
| +++ b/webrtc/modules/audio_coding/codecs/isac/main/source/isac.c
|
| @@ -1578,6 +1578,13 @@ int16_t WebRtcIsac_Control(ISACStruct* ISAC_main_inst,
|
| return 0;
|
| }
|
|
|
| +void WebRtcIsac_SetInitialBweBottleneck(ISACStruct* ISAC_main_inst,
|
| + int bottleneck_bits_per_second) {
|
| + ISACMainStruct* instISAC = (ISACMainStruct*)ISAC_main_inst;
|
| + assert(bottleneck_bits_per_second >= 10000 &&
|
| + bottleneck_bits_per_second <= 32000);
|
| + instISAC->bwestimator_obj.send_bw_avg = (float)bottleneck_bits_per_second;
|
| +}
|
|
|
| /****************************************************************************
|
| * WebRtcIsac_ControlBwe(...)
|
| @@ -2399,3 +2406,12 @@ void WebRtcIsac_SetBandwidthInfo(ISACStruct* inst,
|
| assert(instISAC->initFlag & BIT_MASK_ENC_INIT);
|
| WebRtcIsacBw_SetBandwidthInfo(&instISAC->bwestimator_obj, bwinfo);
|
| }
|
| +
|
| +void WebRtcIsac_SetEncSampRateInDecoder(ISACStruct* inst,
|
| + int sample_rate_hz) {
|
| + ISACMainStruct* instISAC = (ISACMainStruct*)inst;
|
| + assert(instISAC->initFlag & BIT_MASK_DEC_INIT);
|
| + assert(!(instISAC->initFlag & BIT_MASK_ENC_INIT));
|
| + assert(sample_rate_hz == 16000 || sample_rate_hz == 32000);
|
| + instISAC->encoderSamplingRateKHz = sample_rate_hz / 1000;
|
| +}
|
|
|