feat(libSceAudio3d): implement sceAudio3dObjectSetAttributes and sceAudio3dPortFlush #1849
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1849"
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 authurtabo-byte on 2026-10-08T21:59:09Z.
What
Implement
sceAudio3dObjectSetAttributes(4uyHN9q4ZeU) andsceAudio3dPortFlush(ZOGrxWLgQzE) in the library's existing offline model.Title evidence requested in review: 3D MiniGolf v01.000.000, PPSA03647. Both NIDs are present in its guest ELF. With
libSceAudio3dfreshly built from source identical to main0fdda7be, startup fails with:Replacing only that staged library with this PR's build resolves the imports and logs:
This is an import-resolution reproducer: the converted title and its other dependencies were already staged, including the separate relinker note fix #2088. It does not claim this PR alone makes the title playable.
Object attributes validate the port, reserved object and attribute array; reset-state accepts a null value, other attributes require a value. Attribute identifiers and values are otherwise not interpreted. Port flush validates the port and drops queued offline frames. The attribute layout and reset-state identifier follow shadPS4's audio3d implementation; PS5 equivalence and the offline limitation are documented in TechnicalDebt.
Tested
Rebased onto main
f8c2f072. Subsequent main commits only change PR-intake workflows; the tested runtime/relinker source is unchanged. Windows, MinGW-w64 GCC 15.2.0, Release.tools/check_conventions.py --base origin/mainpasses.Linux, PS5 hardware behavior and audible 3D mixing were not tested. No mixing implementation is added.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:22:38Z.
Which title imports these? With its ID and the
unresolved ELF importline from main this can go in; otherwise I'll close it until one does.Imported from boykopovar/AnyPS5. Originally posted by authurtabo-byte on 2026-10-09T20:30:56Z.
Title: 3D MiniGolf v01.000.000 (PPSA03647).
Startup failure against freshly built \libSceAudio3d\ from main (\
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:33:18Z.
Checked against shadPS4 (validation order: port, parameters, object; flush drops queued frames), built and ran
guest_audio3d_porton Linux (passes; the test does not build without the change), TechnicalDebt line is in the right section. The MiniGolf (PPSA03647) import evidence answers the earlier question.Added one commit, rebased onto current
main:docs/dev/TechnicalDebt.md: the Audio3d line now records that an object id that was never reserved returnsINVALID_OBJECT, while shadPS4 returns success for it and the error only for a released object; neither is measured on a console.Merging once CI is green.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:12:22Z.
Progress report (
54f28f2→4924932)📈 System libraries: 85.31% (+0.01%, +2 implemented functions)
✅ 2 implemented
sceAudio3dObjectSetAttributessceAudio3dPortFlush