feat(libwebrtc): implement AudioEncoder::OnReceivedTargetAudioBitrate and OnReceivedUplinkAllocation #17269
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17269"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-08T16:37:10Z.
What
Implements
webrtc::AudioEncoder::OnReceivedTargetAudioBitrate(int)andOnReceivedUplinkAllocation(BitrateAllocationUpdate), which threw. Both call the virtualOnReceivedUplinkBandwidththrough the encoder's own vtable (slot 21, the same at M127 and M134 inapi/audio_codecs/audio_encoder.h), asaudio_encoder.ccdoes: the first with an empty period, the second withtarget_bitrate.bps()andbwe_period.ms()(BitrateAllocationUpdateis identical at both revisions). The unmeasured parts (slot, optional passed in two registers) are indocs/dev/debt/libwebrtc.md.Tested
Linux x86-64: full build,
check_conventions.py --base upstream/mainand the full suite pass on this branch (4549 of 4549 tests, none failing).ctest -R guest_webrtc_audio_encoderuses a fake vtable per encoder to check that the call goes through the object's own slot, and the rounding ofbwe_period.ms().upstream/mainpasses 4547 of 4547 here.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)