fix(libSceAudioOut): return 0 from sceAudioOut2LoTerminate and forward sceAudioOut2InitializeEx #9032
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9032"
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 hypermoist on 2026-10-21T10:10:46Z.
What
Two AudioOut2 calls threw:
libSceAudioOut)sceAudioOut2LoTerminate(QuAWXdMHi88, 0x248d0)sceAudioOut2LoInithere issceAudioOut2Initializeand starts no service, so there is nothing to stop. Open contexts and ports are left as they are, and the call is listed under a new Silent stubs section in the debt filesceAudioOut2InitializeEx(3livsiq3ji4, 0x2a640)sceAudioOut2Initialize(0x2a650)sceAudioOut2Initialize(). The argument's meaning stays in the debt fileThe code is written from the observed behaviour; nothing from the module is copied.
Tested
Linux (CachyOS, GCC, Release).
audio_out2_latencyasserted thatsceAudioOut2LoTerminatethrows. It now checks that the call returns 0 twice in a row, and thatsceAudioOut2InitializeExreturns 0 for arguments 0 and 1. All 41audio_out*tests pass.tools/check_conventions.pyis clean. Three-way merges with the open PRs touching these five files add no conflicts in the code or tests (#1384, #5021, #5965, #6879, #8098, #8525, #8652, #8693, and my #9023 and #9027). The exception is the debt file: #8525 and #8652 also create the### Silent stubssection at the top oflibSceAudioOut.md. Whichever lands second keeps the header once and both entries.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
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T10:12:13Z.
Progress report (
2abfb1b→e0f3e86)📈 System libraries: 49.69% (+0.03%, +2 implemented functions)
✅ 2 implemented
sceAudioOut2InitializeExsceAudioOut2LoTerminate⚪ 1 behaviourally empty (constant return or throw)
sceAudioOut2LoTerminateImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T10:33:00Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceAudioOut.mdL2Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceAudioOut.mdcore/libs/prx/libSceAudioOut/src/Unimplemented.cppdocs/dev/debt/libSceAudioOut.mdImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T13:43:59Z.
Linux data point for
e0f3e860a2: WSL2 Ubuntu 24.04 (virtualised kernel, not bare-metal Linux), GCC 13.3.0, Release,BUILD_TESTING=ON, PR head alone (not merged ontomain) (its merge-base is27c88a8d7).ctest -R '^audio_out2_latency$'passes 3 of 3.AudioOut2Low.cpp, AudioOut2System.cpp and Unimplemented.cpp (libSceAudioOut/src); the PR's tests kept): fails (Subprocess aborted).Not tested: macOS, Windows, a title run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-22T09:10:11Z.
@xXPBSXx thanks for the Linux run, and for the control that restores the production files: it shows the test fails without the change (aborts) and passes with it.