Repository navigation
feat(libSceAudioOut): return 0 from sceAudioOutSetMainOutput like the firmware stub - #8652
Conversation
Progress report (73ad397 → 91039af)📈 System libraries: 50.52% (+0.01%, +1 implemented functions) ✅ 1 implemented
⚪ 1 behaviourally empty (constant return or throw)
Changed libraries (implemented exports)
|
|
Some 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.
|
|
Windows run of 18088be merged onto Built |
… firmware stub sceAudioOutSetMainOutput threw "not implemented". In firmware 12.70 the export is `xor eax,eax; ret` (PS5-Audio-Passthrough-Research, docs/FINDINGS.md line 25 at cf3c921): it reads no argument, changes nothing and returns 0. It now does the same, defined in AudioOut.cpp next to the Sys output calls. Its parameters stay unknown and other firmware versions are unverified. The debt file records this under Silent stubs, which check_conventions requires for an export that returns a constant, in place of the function's unknown-signature line. The audio_out_sys test checks that the call does not throw and returns 0; on main both checks fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18088be to
d16be88
Compare
harisibrar1
left a comment
There was a problem hiding this comment.
Checked against main b607bfd and PS5-Audio-Passthrough-Research FINDINGS.md at cf3c921 and c3be9c2:
- The source holds up: L25 is in the "Symbol survey" table of exports from the firmware 12.70
libSceAudioOut.sprx(not the payload-SDK stub mentioned separately) and readsxor eax,eax; ret. KI9cl22to7E matches the name, and main still throws for it (Unimplemented.cpp:130), so returning 0 matches the firmware body rather than being a made-up success. - The branch no longer merges cleanly;
git merge-treeagainst main shows two conflicts:AudioOut.cpp: main changed the next function tosceAudioOutSetMixLevelPadSpk(int handle, std::uint32_t mixLevel)(AudioOut.cpp:654), so please keep that signature when resolving.docs/dev/debt/libSceAudioOut.md: #8525 and #9032 have landed their### Silent stubsentries, as your description anticipated, so this entry can go into that existing section.
- Optional: the survey row gives no text offset for this export, unlike other entries in that document. The debt line could say this is the survey's disassembly reading rather than a console measurement.
Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
|
@nikowolf123 This PR now conflicts with main in |
|
@nikowolf123 this conflicted with |
What
sceAudioOutSetMainOutput(NIDKI9cl22to7E) now returns 0 and does nothing, for any arguments. Until now it threwsceAudioOutSetMainOutput not implemented. It has no error path and writes no output.The source is the symbol survey of firmware 12.70's
libSceAudioOut.sprxin PS5-Audio-Passthrough-Research,docs/FINDINGS.mdL25, which lists this export as "yes, but it is a stub:xor eax,eax; ret". That body reads no argument register, writes no memory, calls nothing and returns 0. The row is unchanged at the repository's latest commit (c3be9c2, L25), anddocs/dev/debt/libSceAudioOut.mdalready cites the same document forsceAudioOutExOpen,sceAudioOutExConfigureOutput,sceAudioOutExCloseandsceAudioOutSysGetHdmiMonitorInfo.compute_nid("sceAudioOutSetMainOutput")intools/nid_names.pygivesKI9cl22to7E, the NID in that row.src/Unimplemented.cpp, and the function is defined insrc/AudioOut.cppaftersceAudioOutSysOpen. It stays declared without parameters: the export reads none, so whatever a caller passes is ignored.docs/dev/debt/libSceAudioOut.mdunder a new Silent stubs section, which replaces the function's "unknown signature" line under Unknown function info.tools/check_conventions.pyrequires that listing for an export whose body is a constant return: on a probe commit without the entry it reports[silent-stub] ... sceAudioOutSetMainOutput.sceAudioOutMasteringTerm) and fix(libSceAudioOut): return 0 from sceAudioOut2LoTerminate and forward sceAudioOut2InitializeEx #9032 (forsceAudioOut2LoTerminate) also add a### Silent stubssection at the top ofdocs/dev/debt/libSceAudioOut.md. Whichever of them merges later conflicts there and needs a rebase that keeps all entries under one heading. As of 2026-10-21, no other open pull request's diff mentionssceAudioOutSetMainOutputorKI9cl22to7E.Tested
Linux: WSL2 Ubuntu 26.04, GCC 15.2.0 (Ubuntu 15.2.0-16ubuntu1), Release. I built the
libSceAudioOutandaudio_out_sys_teststargets and ranctest -R '^audio_out_sys$' --output-on-failure --timeout 120:main434e965, and again at d16be88 onmain2c4b116:audio_out_syspasses (1/1).main, where the function still throws "not implemented":audio_out_sysfails withfailed: sceAudioOutSetMainOutput does not throwandfailed: sceAudioOutSetMainOutput returns 0, and no other check fails.tools/check_conventions.py --base origin/mainpasses, also with--titleand--body.tools/progress.py --module libSceAudioOutonmain2c4b116: done goes from 59 to 60 and todo from 86 to 85; the only newly done function issceAudioOutSetMainOutput.Windows: not built. No title was run.
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