docs(libSceAudioOut): note which port state fields five titles read #11739
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11739"
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 milescoviello on 2026-10-27T06:26:02Z.
What
The
sceAudioOut2PortGetStateentry indocs/dev/debt/libSceAudioOut.mdsays a console reports output 0, volume -1 and reroute counter 5 where AnyPS5 reports output main, volume 127 and a zero counter, so a title's values are unverified. This adds which of those fields titles actually read, which tells where a mismatch could matter:outputflags, testing bit 0num_channels,output,flags;outputagainst 0;volumeagainst 0flags, testing bit 0flags, testing bit 0In those windows, none of the eight calls reads
reroute_counter. This is a bounded scan: a read later in the caller, or through a copy of the state, isn't ruled out. Metal Gear Solid 4, Black Ops II and STEINS;GATE RE:BOOT don't call it.How
I found the calls through the import's PLT stub in each title's relinked
eboot.bin, took the state buffer from thersiset before each call, and listed the reads from that buffer in the 30 instructions after it, matched toAudioOut2PortState's fields. No code change.Changed:
docs/dev/debt/libSceAudioOut.md.Tested
Docs only.
tools/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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T06:27:24Z.
Review: COMMENTED
The table is useful, but the conclusion that none of the eight calls reads
reroute_counterappears broader than the stated method: the description says reads were checked in the 30 instructions after each call. Could you scope the conclusion to that inspected window (and note that later or indirect reads were not ruled out), unless the analysis tracked the state buffer through the rest of each relevant code path? That would keep the debt entry from treating a bounded disassembly scan as proof of no use.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T06:32:45Z.
Review: APPROVED
Re-reviewed exact updated head
603a540fa7dcdfa3cfd7991e34ac583ae30064de. The revision now explicitly bounds the findings to the 30-instruction scan and says later or indirect reads are not ruled out, which resolves my comment. The documentation-only change keeps the underlying hardware values marked unverified; current-base conventions and other policy checks pass, while product jobs are skipped by path policy. I did not independently inspect the title binaries.