fix(libSceAudioOut): open a port for any index in sceAudioOutOpen #16542
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16542"
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 xXPBSXx on 2026-11-07T02:24:49Z.
What
sceAudioOutOpenthrows when its third argument, the index, is not 0. A PS5 opens the port for any index that was tried: a homebrew payload process on firmware 11.60 opened a main port (type 0) for index 1, 2, 3, 7, 8, 255 and -1, and a type 1 port for index 1, and closing each returned 0. The index no longer causes a throw; what the console does with it besides opening is not measured. A title process was not measured either, and no known title opens an index other than 0: every direct call in the titles checked for the debt entry passes the constant 0, except one that is not shown to be a constant. The debt entry now records the measurement.Each open still gets its own port, as with index 0; the index is not stored anywhere.
Tested
Measured on a PS5 with firmware 11.60 (
kernel_get_fw_version0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-06 at 17:49 UTC and 18:20 UTC (index 1 and 2, two runs, identical) and at 20:35 UTC (the other values). A title process may differ.sceAudioOutOpen(0xff, type, index, len, 48000, param)mainThe new test
audio_out_buffer_size_any_indexopens and closes ports with index 1, 2, 255 and -1. On Ubuntu 24.04 under WSL2 with GCC 13.3.0 and an AddressSanitizer build, onmainc643163045and on this change on the samemain, it fails onmain(sceAudioOutOpen: index != 0 not supported) and passes with this change; the other sevenaudio_out_buffer_size_*tests pass on both. All 65audio_out*tests pass with this change.tools/check_conventions.py --base upstream/mainpasses. The probe sources and their raw output are in the first comment.Overlap: the 12 open pull requests that change one of the four files were checked on 2026-11-07 between 00:35 UTC and 00:55 UTC against
mainad8e79fd81, together with all 497 open pull requests updated since 21:20 UTC on 2026-11-06 (none of those outside the 12 changes these files). Four of the 12 already conflict withmainwithout this change, and none conflicts because of this change. At 01:55 UTC all 12 were still open,mainhad moved to5dbc24eaeawithout a commit that changes these files, this change still merges into it without a conflict, and of the 203 pull requests updated since 00:30 UTC only #12315 (one of the 12) changes them. #12863 adds a mode to the sameforeachlist inCMakeLists.txt, so the new test is registered on its own line instead.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)AI-assisted (Claude Code).
🤖 Generated with Claude Code