fix(libSceAudioOut): fail a repeated sceAudioOut2Initialize and sceAudioOutInit as measured on a PS5 #11035
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11035"
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 orezraey on 2026-10-25T14:39:56Z.
What
Repeated
sceAudioOut2InitializeandsceAudioOutInitmeasured on a retail PS5 (firmware 13.60) with two homebrew probes callinglibSceAudioOut.sprxfrom fresh payload processes, one per initialization order. No port is opened and no sound plays. The sources and console logs are in this gist (paoinit,paoinit2).Both functions returned 0 on every call, and
sceAudioOutInitjust calledsceAudioOut2Initialize. On the console:paoinit)sceAudioOut2Initialize0, again0x80268004;sceAudioOutInit0;sceAudioOut2Initialize0x80268004;sceAudioOutInit0x8026000epaoinit2)sceAudioOutInit0;sceAudioOut2Initialize0x80268004twice;sceAudioOutInit0x8026000eIn both orders
sceAudioOut2GetSpeakerInfothen returns 0 and writes 0x50 bytes, as AnyPS5 already does.So the two keep separate state: AudioOut2 fails once it is initialized, by either call, and the legacy call fails only on its own second call. AnyPS5 now does the same.
sceAudioOut2InitializeExandsceAudioOut2LoInitwere not measured: they keep returning 0 and marking AudioOut2 initialized, and the debt entry now records that gap instead of the measured one.Tested
Head
9925a9e401onmain3a2c51afd2, Windows 11 Pro 26200, WinLibs GCC 15.2, Release.audio_out2_latencyfollows the AudioOut2-first order andaudio_out2_device_statethe legacy-first order, each in its own process, with the console's results.audio_out*tests pass three runs in a row; no other test calls either function.tools/check_conventions.pypasses. Linux (WSL, same head9925a9e401): the 47audio_out*tests registered there pass three runs in a row.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 MarcZX10 on 2026-10-25T15:02:53Z.
Review: APPROVED
Reviewed exact head
9925a9e401ac5fde5cf0fe7dd12b1b906f2f4263. The five changed production/test translation units pass GCC 12.2 syntax checking when using the repository SDL headers;git diff --check upstream/main...HEADand conventions pass. The PR reports 43 focused AudioOut tests passing three times and PS5 firmware 13.60 observations for the two initialization APIs; the additionalInitializeEx/LoInitrepeated-call behavior remains explicitly unmeasured in the debt entry. Hosted product jobs are skipped by path policy, so the runtime suite was not independently run here. Search for open PRs by the changed API found no duplicate implementation.