feat(libSceAudioOut): implement sceAudioOutGetSimulatedHandleStatusInfo2 #11202

Closed
26JATIN wants to merge 1 commit from upstream-pr/11202 into main
26JATIN commented 2026-10-25 21:46:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 26JATIN on 2026-10-25T21:46:17Z.


What

sceAudioOutGetSimulatedHandleStatusInfo2 threw NotImplemented_nid_no_patch, so a title that called it aborted. It now returns 0x809B00FF, the value sceAudioOutGetSimulatedHandleStatusInfo already returns for the same simulated-handle query.

Its declaration has no parameters because the signature is unknown, which is safe for an int return that reads none. The assumption that the pair differs only in a handle width is recorded in docs/dev/debt/libSceAudioOut.md.

This is the libSceAudioOut part of the change originally opened here; the other two topics moved to #11211 (libkernel) and #11212 (libkernel_sys).

Tested

Linux (Ubuntu, GCC 15.2.0, x86-64). The changed translation unit compiles with the project's flags (tools/check_compile.py --base origin/main) and libSceAudioOut links. The same change was part of a full build with -DBUILD_TESTING=ON and ctest: 2271 of 2274 tests passed, the three failures environmental (pr_overlap_encoding needs the build directory inside a git checkout, unwrap_self needs os.chown, agc_driver_multisample_retirement runs on llvmpipe with 1x1 sample location grids).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5009028796 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11202). Originally posted by [26JATIN](https://github.com/26JATIN) on 2026-10-25T21:46:17Z. --- ### What `sceAudioOutGetSimulatedHandleStatusInfo2` threw `NotImplemented_nid_no_patch`, so a title that called it aborted. It now returns `0x809B00FF`, the value `sceAudioOutGetSimulatedHandleStatusInfo` already returns for the same simulated-handle query. Its declaration has no parameters because the signature is unknown, which is safe for an `int` return that reads none. The assumption that the pair differs only in a handle width is recorded in `docs/dev/debt/libSceAudioOut.md`. This is the `libSceAudioOut` part of the change originally opened here; the other two topics moved to #11211 (`libkernel`) and #11212 (`libkernel_sys`). ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux (Ubuntu, GCC 15.2.0, x86-64). The changed translation unit compiles with the project's flags (`tools/check_compile.py --base origin/main`) and `libSceAudioOut` links. The same change was part of a full build with `-DBUILD_TESTING=ON` and `ctest`: 2271 of 2274 tests passed, the three failures environmental (`pr_overlap_encoding` needs the build directory inside a git checkout, `unwrap_self` needs `os.chown`, `agc_driver_multisample_retirement` runs on llvmpipe with 1x1 sample location grids). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 21:49:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T21:49:00Z.

Review: CHANGES_REQUESTED


The repository rule requires one branch per topic (CONTRIBUTING.md: “One branch per topic”). This change combines three independent API behaviors in different libraries: an AudioOut status query, the libkernel __Ux86_64_setcontext alias, and libkernel_sys direct-memory aliasing. None depends on the others, so this is not one reviewable topic. Please split these into separate PRs and keep the checklist accurate for each resulting change. The sceAudioOutGetSimulatedHandleStatusInfo2 and sceKernelEnableDmemAliasing2 behavior is explicitly recorded as unmeasured; I treated those as assumptions, not console-verified behavior. I did not find those exact exports implemented by the other open PRs I checked. Local conventions and git diff --check pass; the PR reports the Linux full-suite run, with three stated environmental failures.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645495542 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11202#pullrequestreview-5645495542). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T21:49:00Z. **Review:** CHANGES_REQUESTED --- The repository rule requires one branch per topic (`CONTRIBUTING.md`: “One branch per topic”). This change combines three independent API behaviors in different libraries: an AudioOut status query, the libkernel `__Ux86_64_setcontext` alias, and libkernel_sys direct-memory aliasing. None depends on the others, so this is not one reviewable topic. Please split these into separate PRs and keep the checklist accurate for each resulting change. The `sceAudioOutGetSimulatedHandleStatusInfo2` and `sceKernelEnableDmemAliasing2` behavior is explicitly recorded as unmeasured; I treated those as assumptions, not console-verified behavior. I did not find those exact exports implemented by the other open PRs I checked. Local conventions and `git diff --check` pass; the PR reports the Linux full-suite run, with three stated environmental failures.
MarcZX10 commented 2026-10-25 22:04:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T22:04:36Z.

Review: CHANGES_REQUESTED


Thanks for splitting this into the AudioOut-only PR. The remaining implementation is still an unverified return-value guess: the updated description says sceAudioOutGetSimulatedHandleStatusInfo2 is assumed to match sceAudioOutGetSimulatedHandleStatusInfo, and the debt entry preserves that uncertainty.

There is contrary context in merged PR #9023: its description explicitly says sceAudioOutGetSimulatedHandleStatusInfo2 has a real body on the console and was excluded from the constant-return implementation. The measured behavior of the unsuffixed export therefore does not establish this function's behavior or signature. CONTRIBUTING.md and AGENTS.md require unknown behavior to keep throwing and be recorded in technical debt. Please retain NotImplemented_nid_no_patch until console disassembly/runtime evidence establishes the 2 function's return and any output effects. If evidence supports this implementation, add a focused regression for the 2 export; the existing AudioOutInfo test only checks the unsuffixed function.

I fetched exact head b08e311a1b38e7497572e76dce0b391a9ea089ad; current-main conventions and git diff --check pass. The checks currently visible are conventions and labels; the PR reports a prior full build for the combined change, but no focused test for this export.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645566110 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11202#pullrequestreview-5645566110). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T22:04:36Z. **Review:** CHANGES_REQUESTED --- Thanks for splitting this into the AudioOut-only PR. The remaining implementation is still an unverified return-value guess: the updated description says `sceAudioOutGetSimulatedHandleStatusInfo2` is assumed to match `sceAudioOutGetSimulatedHandleStatusInfo`, and the debt entry preserves that uncertainty. There is contrary context in merged [PR #9023](https://github.com/boykopovar/AnyPS5/pull/9023): its description explicitly says `sceAudioOutGetSimulatedHandleStatusInfo2` has a real body on the console and was excluded from the constant-return implementation. The measured behavior of the unsuffixed export therefore does not establish this function's behavior or signature. `CONTRIBUTING.md` and `AGENTS.md` require unknown behavior to keep throwing and be recorded in technical debt. Please retain `NotImplemented_nid_no_patch` until console disassembly/runtime evidence establishes the `2` function's return and any output effects. If evidence supports this implementation, add a focused regression for the `2` export; the existing `AudioOutInfo` test only checks the unsuffixed function. I fetched exact head `b08e311a1b38e7497572e76dce0b391a9ea089ad`; current-main conventions and `git diff --check` pass. The checks currently visible are conventions and labels; the PR reports a prior full build for the combined change, but no focused test for this export.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11202
No description provided.