feat(audioout2): report supported user attributes #4893
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4893"
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 Lorkydey on 2026-10-13T02:17:49Z.
What
Implement
sceAudioOut2UserGetSupportedAttributesfor the attributes supported by AnyPS5's AudioOut2 backend.NHL 27 (PPSA34063, bring-up #4275) was reported in merged #4544 to load its modules and start its threads, then stop at:
That query is still a throwing stub on the base of this PR,
37dd4830846182bff60c73a07a74fab4fb8c1c60. This title evidence is from #4544; NHL 27 has not been rerun with this change.The query takes a user handle and two
uint32_t*outputs. It reports context mask0(no context attributes are applied) and port mask3(PCM data, bit 0; per-channel gain, bit 1). Those are the attributesAudioOut2PortSetAttributescurrently applies. User creation and destruction now maintain a locked live-handle registry, so the query rejects unknown and destroyed handles. Null outputs also throw, before writing either output.The signature and attribute IDs follow SharpProspero; KytyPS5 also implements these as two 32-bit capability masks. The returned masks describe AnyPS5's existing implementation, not capabilities measured on a PS5. Validation order and console error values are unknown, so unsupported calls throw. Port ownership and busy-user destruction remain outside this change. These limits are recorded in the library's technical debt.
The existing
audio_out2_port_layoutstest now checks live, invalid and destroyed user handles, independent users, a query from another thread, null outputs without partial writes, and guard words around both 32-bit outputs. Its existing SDL disk-output checks exercise the advertised PCM data and per-channel gain, including multichannel folds.Overlap audit: no open PR changes either implementation file or the test file, and none implements this query. There is one documentation-only collision with #4860: both update different resolved functions in the same old grouped debt entry. Neither implementation depends on the other. Proposed merge order: #4860 first, then this PR, pending confirmation from its author. The checklist dependency records that order only. After #4860 lands, the rebase must keep both resolved functions removed from the grouped entry while retaining the new AudioOut2 limitations. Pairwise
git merge-treeof1970bcb2fand #4860'sc29a5ad99confirms that only this debt file conflicts; no combined runtime validation is claimed.Tested
BUILD_TESTING=ON: builtlibs,relinker, and all four selected test executables.audio_out2_port_layouts,audio_out2_port_buffers,audio_out2_latency, andpatched_librarieseach pass five consecutive runs.AudioOut2User.cppandAudioOut2System.cppfrommain.audio_out2_port_layoutsfails at the unimplemented supported-attributes query. Restoring the PR sources and rebuilding makes all four tests pass five times again. Both restored source files are identical on the tested baseline and the rebasedmain.1970bcb2f874beec94e47b3ac2738dcd83aac3b0passes. Builtlibs,relinker, and the four test executables; all four tests pass five times. The same negative control fails at the missing query onmain; after restoring the exact PR sources, all four tests pass five times again.python tools/check_conventions.py --base origin/main, test registration, andgit diff --checkpass.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 github-actions[bot] on 2026-10-13T02:18:10Z.
Progress report (
e96bfff→87ee824)📈 System libraries: 88.3% (+0.02%, +1 implemented functions)
✅ 1 implemented
sceAudioOut2UserGetSupportedAttributesImported from boykopovar/AnyPS5. Originally posted by Lorkydey on 2026-10-13T03:18:10Z.
@jagrat04 The bot's overlap between #4893 and #4860 is limited to the grouped entry in
docs/dev/debt/libSceAudioOut.md; the implementations and tests do not overlap. A pairwise merge check of1970bcb2fandc29a5ad99confirms this.I propose #4860 first, then #4893, and have recorded that proposed merge order in my checklist. After yours lands, I will rebase mine, keeping both
sceNpEntitlementAccessGetPftFlagandsceAudioOut2UserGetSupportedAttributesremoved from the old unresolved list and retaining the new AudioOut2 limitations. Does that order work for you? This is a documentation merge-order dependency, with no runtime dependency or combined runtime validation claimed.AI-assisted: yes (Codex).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:25:21Z.
Checked the build and
audio_out2_port_layoutsplus the other libSceAudioOut tests (green); the new test fails without the change. Masks match KytyPS5 minus ambisonics, which isn't implemented here. Rebased onto main to resolve the debt-file conflict with #4860 (keptsceNpEntitlementAccessGetPftFlagout of the remaining list); merging once CI is green.