feat(libwebrtc): implement the webrtc::AudioNetworkAdaptorImpl::Config constructor and destructor #15193
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15193"
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-02T20:26:08Z.
What
Implements
webrtc::AudioNetworkAdaptorImpl::Config::Config()and~Config()in libwebrtc, which threw and were declared without parameters.The module's WebRTC revision lies between M127 and M134, as recorded in the debt file. In
audio_network_adaptor_impl.cc(M127, M134) the constructor initializesevent_log, the struct's only member, to null and the destructor is= default; both are the same at M127 and M134, whose files differ only inabsl::optionalagainststd::optionalelsewhere.src/AudioNetworkAdaptorConfig.cppstarts with that file's WebRTC notice and the BSD licence.The destructor does nothing, as upstream:
Configdoes not own the log. A null config throws in the constructor. It removes 2 exports from the inventory.Tested
Ubuntu 26.04 (WSL2, kernel 6.18), GCC 15.2.0, Release, full build with
BUILD_TESTING=ON.guest_webrtc_audio_network_adaptor_configtest: the constructor clears a pointer filled with 0xA5, the destructor leaves a set event log in place, and a null config throwsstd::invalid_argument.ctest -j16on head e587a2e4f9: 3596/3596 pass.check_conventions.py --base upstream/mainpasses.pr_overlap.py: no open pull request implements these functions. The shared lines are the pending-export count indocs/dev/debt/libwebrtc.mdand the source, test and declaration lists inCMakeLists.txtandApi.hpp.main4f41f4c375, head 6ac6b6e7be, to resolve the conflicts on the sharedCMakeLists.txt,Export.cppand debt-file lines; both sides are kept and the debt count is recomputed fromExport.cpp. Full build andctest -j16: 3796/3800 pass;guest_sce_net,guest_poll,guest_select_waitandguest_memoryfailed under that load, pass when run alone, andmain4f41f4c375passes all 3799 with-j16on the same machine.check_conventions.py --base upstream/mainpasses.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)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T21:10:26Z.
Review: APPROVED
Matches firmware 13.42's
system/common/lib/libwebrtc.sprx(sha256d59d0caf6967329b39201a2a0bd6df7b994516f21701b9801908db6735ae5314), disassembly only._ZN6webrtc23AudioNetworkAdaptorImpl6ConfigC1Ev(JC8l+wMW5SA,0x7041e0) and the destructor (2tjK273oCkE,0x7041f0) are:The constructor nulls the 8-byte
event_log, and the destructor does nothing, as in the PR.Tested on Windows 11, WinLibs GCC 15.2.0, with this head merged onto
main:guest_webrtc_audio_network_adaptor_configpasses, nothing skipped. Withmain'sExport.cppandApi.hpp, the new source doesn't compile against the old parameterless declaration.