feat(libwebrtc): implement AudioState::Config::~Config #18498
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18498"
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-11T18:58:35Z.
What
Implements
webrtc::AudioState::Config::~Config, which threw throughNotImplemented_nid_no_patch.audio_state.cc defaults the destructor, so it destroys the four
scoped_refptrmembers of audio_state.h in reverse order: async audio processing factory, audio device module, audio processing, audio mixer. Each one that is not null callsRelease()on its object (scoped_refptr.h). All four types (AudioMixer,AudioProcessing,AudioDeviceModule,AsyncAudioProcessing::Factory) derive only fromRefCountInterface, whose virtuals areAddRef,Releaseand the destructor in that order (ref_count.h), soReleaseis vtable slot 1 and is called through the guest object's vtable. The member list, the bases and the slot order are the same at M127 (e0b28a6a81a9) and M134 (8d78f5de6c27).The debt entry for the constructor now covers the destructor too; the slot is not checked on the console.
Tested
Linux:
suite.py feat/libwebrtc-audio-state-config-destructorate908c9d48d: CTest 6573/6574 passed; guest_libressl_tls_engine_transport failed once and passed on rerun; conventions passed.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T14:28:07Z.
Review: COMMENTED
Reviewed — no blocking findings
The PR replaces the throwing
AudioState::Configdestructor with one that releases the four references in the order factory, device module, processing, mixer; the code read at head 40fe52da453f shows no blocking defect.What I ran
40fe52da453f46599c3132e8e720790328e6b375, basemain.AudioStateConfig.hppand the start of the test file, through the reader.RefCountInterface.check_conventionsrun.Commands
Results
fdpmexpectationFindings
Blocking
None.
Non-blocking
None.
Sources
audio_state.ccandref_count.h, as pinned in the debt entry atdocs/dev/debt/libwebrtc.md:147.Not verified
check_conventionswere not run here. The pass results are the author's.ReleaseinRefCountInterfacerests on the upstream permalink.ref_count.his not in this repository, so I did not check it.AudioStateConfig.cpp,Api.hpp,Export.cppanddocs/dev/debt/libwebrtc.mdwere read through their changed hunks indiff.patch.tests/AudioStateConfig.cppwas read at lines 1–40 plus its hunks. Nothing was excluded by rule.To get this to a good state
Nothing blocking. No new commands are needed on the new head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T00:13:35Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the destructor’s reverse release order, null handling, and guest vtable slot call are consistent with the inspected layout and existing implementation patterns.
What I ran
Reviewed head
82101e4db1ac311fd027a75e961e91b4adc73f54. No commands or tests were run; the author reports a full build and suite, a serial rerun with 4925/4925 tests passing, and convention checks passing.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Console behavior and the
Releasevtable slot were not verified. All changed files listed in the manifest were read:core/libs/prx/libwebrtc/Export.cpp,core/libs/prx/libwebrtc/include/Api.hpp,core/libs/prx/libwebrtc/src/AudioStateConfig.cpp,core/libs/prx/libwebrtc/tests/AudioStateConfig.cpp, anddocs/dev/debt/libwebrtc.md. No files were excluded by the prepared manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T12:13:23Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation and focused tests support the documented destructor behavior at head
ae78422ce310feea7430e5b786d4148c038c31df; no checks were run in this review, so approval is not justified.What I ran
No commands or tests were run. I inspected the prepared diff and changed source at the pinned head.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, test, or console checks were run. The author reports a full Linux/WSL2 build and suite on an earlier commit,
40fe52da45; that result was not independently verified here. All files markedreviewedin the review manifest were read:core/libs/prx/libwebrtc/Export.cpp,core/libs/prx/libwebrtc/include/Api.hpp,core/libs/prx/libwebrtc/src/AudioStateConfig.cpp,core/libs/prx/libwebrtc/tests/AudioStateConfig.cpp, anddocs/dev/debt/libwebrtc.md. No changed files were excluded.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T05:26:48Z.
Review: APPROVED
Reviewed — looks good
The destructor releases the four references in reverse member order through the declared
Releaseslot; all five changed files were read, and no blocking defect was verified.What I ran
Reviewed head
e509c172e2bdf4275bae1b3cb827f11b79b30f67. Read the prepared description, commits, diff, manifest, and all five changed files throughrepo_read.py. No build or tests were run; the test results in the PR description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The claimed Linux build, test suite, and convention check were not run by this review. Console behavior and the
Releaseslot were not checked on hardware. The changed files reviewed werecore/libs/prx/libwebrtc/Export.cpp,core/libs/prx/libwebrtc/include/Api.hpp,core/libs/prx/libwebrtc/src/AudioStateConfig.cpp,core/libs/prx/libwebrtc/tests/AudioStateConfig.cpp, anddocs/dev/debt/libwebrtc.md;files.jsonwas not available from the reader, and the manifest lists no excluded changed files.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:52:51Z.
Review: COMMENTED
Reviewed — comments
The change implements the destructor and adds coverage, but I could not run the checks on this head, so I cannot make a formal merge decision.
What I ran
Reviewed head
e908c9d48d33cdcabf4f7f8e2812b220a0bf5a20using the prepared review bundle and pinned readerrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
The Linux test results in the PR description are author-reported, not independently verified. I read the changed hunks and full text for the other changed files;
Export.cppwas read only around the removed stub. I did not inspect excluded files, if any, or verify behavior on a console.To get this to a good state
Nothing is required. The Linux checks reported in the description are optional to rerun on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T02:00:58Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the host-side destructor behavior is covered by focused tests, while the guest
Releaseslot remains unverified on console.What I ran
Reviewed head
36fc6ff2f7aa2385708928e50386ec2dc9e13f15. I read the prepared description, commits, manifest, diff, all six changed files, and targeted destructor and ABI context throughrepo_read.py. I did not run tests or builds; the Linux test results below were reported by the author.Results
Releaseslot not checked on consoleFindings
Blocking
None.
Non-blocking
None.
Not verified
I did not run the test suite or verify guest object vtables and
Releaseslot behavior on console. The reported Linux suite initially had one failure, which passed on rerun; conventions reportedly passed. No files were excluded from the review: the manifest lists six changed files, all included and read.To get this to a good state
Nothing is required.