Index: webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c b/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
index 2441e41ccb49227657b619bade968c014a87f57a..bdb807e10b3b532039bc377f1c2ecc6f06fa89d8 100644 |
--- a/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
+++ b/webrtc/modules/audio_coding/codecs/isac/fix/source/isacfix.c |
@@ -1110,6 +1110,13 @@ int16_t WebRtcIsacfix_Control(ISACFIX_MainStruct *ISAC_main_inst, |
return 0; |
} |
+void WebRtcIsacfix_SetInitialBweBottleneck(ISACFIX_MainStruct* ISAC_main_inst, |
+ int bottleneck_bits_per_second) { |
+ ISACFIX_SubStruct* inst = (ISACFIX_SubStruct*)ISAC_main_inst; |
+ assert(bottleneck_bits_per_second >= 10000 && |
+ bottleneck_bits_per_second <= 32000); |
+ inst->bwestimator_obj.sendBwAvg = ((uint32_t)bottleneck_bits_per_second) << 7; |
+} |
/**************************************************************************** |
* WebRtcIsacfix_ControlBwe(...) |