fix(libSceAudioOut): return what the firmware returns from three info calls #9023

Merged
hypermoist merged 1 commit from upstream-pr/9023 into main 2026-10-23 11:54:12 +00:00
hypermoist commented 2026-10-21 09:56:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-21T09:56:43Z.


What

Three libSceAudioOut exports return a constant on the console and read none of their arguments. They threw here; now they return the same value:

Export (NID, address in the decrypted PS5 12.00 module) Console
sceAudioOutGetSimulatedHandleStatusInfo (pWmS7LajYlo, 0x2d80) returns 0x809B00FF, the code sceMbusAcquireControlList already returns on main
sceAudioOutGetInfoOpenNum (RqmKxBqB8B4, 0x32f0) returns 0
sceAudioOutGetInfo (-00OAutAw+c, 0x3300) returns 0

Their signatures stay unknown, so they keep the (void) declarations and their "Unknown function info" debt lines. sceAudioOutGetSimulatedHandleStatusInfo2 has a real body on the console and is not part of this change. The code is written from the observed behaviour; nothing from the module is copied.

Tested

Linux (CachyOS, GCC, Release). The new audio_out_info test checks the three return values. All 42 audio_out* tests pass.

No test referenced these exports before. tools/check_conventions.py is clean, and no open PR changes these functions. Three-way merges with the seven open PRs touching these files (#5021, #5965, #6044, #8098, #8525, #8652, #8693) add no conflicts. The test is registered right after audio_out2_latency.

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 known; no title in my import dumps uses these three
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4949730664 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9023). Originally posted by [hypermoist](https://github.com/hypermoist) on 2026-10-21T09:56:43Z. --- ### What Three `libSceAudioOut` exports return a constant on the console and read none of their arguments. They threw here; now they return the same value: | Export (NID, address in the decrypted PS5 12.00 module) | Console | |---|---| | `sceAudioOutGetSimulatedHandleStatusInfo` (`pWmS7LajYlo`, 0x2d80) | returns `0x809B00FF`, the code `sceMbusAcquireControlList` already returns on `main` | | `sceAudioOutGetInfoOpenNum` (`RqmKxBqB8B4`, 0x32f0) | returns 0 | | `sceAudioOutGetInfo` (`-00OAutAw+c`, 0x3300) | returns 0 | Their signatures stay unknown, so they keep the `(void)` declarations and their "Unknown function info" debt lines. `sceAudioOutGetSimulatedHandleStatusInfo2` has a real body on the console and is not part of this change. The code is written from the observed behaviour; nothing from the module is copied. ### Tested Linux (CachyOS, GCC, Release). The new `audio_out_info` test checks the three return values. All 42 `audio_out*` tests pass. No test referenced these exports before. `tools/check_conventions.py` is clean, and no open PR changes these functions. Three-way merges with the seven open PRs touching these files (#5021, #5965, #6044, #8098, #8525, #8652, #8693) add no conflicts. The test is registered right after `audio_out2_latency`. ### Checklist - [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 known; no title in my import dumps uses these three - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
github-actions[bot] commented 2026-10-21 09:57:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T09:57:33Z.


Progress report (1381826 → 3078588)

📈 System libraries: 51.01% (+0.04%, +3 implemented functions)

✅ 3 implemented
Library Name
libSceAudioOut sceAudioOutGetInfo
libSceAudioOut sceAudioOutGetInfoOpenNum
libSceAudioOut sceAudioOutGetSimulatedHandleStatusInfo
⚪ 2 behaviourally empty (constant return or throw)
Library Name
libSceAudioOut sceAudioOutGetInfo
libSceAudioOut sceAudioOutGetInfoOpenNum
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6313201036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9023#issuecomment-6313201036). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T09:57:33Z. --- <!-- progress-report --> ### Progress report (1381826 → 3078588) 📈 **System libraries**: 51.01% (+0.04%, +3 implemented functions) <details> <summary>✅ 3 implemented</summary> | Library | Name | | - | - | | libSceAudioOut | `sceAudioOutGetInfo` | | libSceAudioOut | `sceAudioOutGetInfoOpenNum` | | libSceAudioOut | `sceAudioOutGetSimulatedHandleStatusInfo` | </details> <details> <summary>⚪ 2 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceAudioOut | `sceAudioOutGetInfo` | | libSceAudioOut | `sceAudioOutGetInfoOpenNum` | </details>
xXPBSXx commented 2026-10-21 15:14:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T15:14:19Z.


Independent Windows run of this PR (data only).

Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against main is clean. I built only audio_out_info_tests; ctest -N -R audio_out_info lists exactly one test.

PR head tested: 30785885f761c311c3352e577951950fcc754294.

Results (3 runs each):

  • PR head: audio_out_info passes 3/3.
  • Baseline: I kept the PR's test and replaced only core/libs/prx/libSceAudioOut/src/Unimplemented.cpp with the version from the PR's merge base (27c88a8d75), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.

GPU: the run output has no Selected GPU line; no GPU claim is made.

Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6319465756 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9023#issuecomment-6319465756). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-21T15:14:19Z. --- Independent Windows run of this PR (data only). **Environment:** Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against `main` is clean. I built only `audio_out_info_tests`; `ctest -N -R audio_out_info` lists exactly one test. **PR head tested:** `30785885f761c311c3352e577951950fcc754294`. **Results (3 runs each):** - PR head: `audio_out_info` passes 3/3. - Baseline: I kept the PR's test and replaced only `core/libs/prx/libSceAudioOut/src/Unimplemented.cpp` with the version from the PR's merge base (`27c88a8d75`), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards. **GPU:** the run output has no `Selected GPU` line; no GPU claim is made. **Not run:** other platforms, the other tests in the same family, the full repository CTest, and any title or console run. AI-assisted (Claude Code).
hypermoist commented 2026-10-22 09:10:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-22T09:10:13Z.


@xXPBSXx thanks for the Windows run. Building with only Unimplemented.cpp reverted makes the result clear: 3/3 passes with the PR and 3/3 aborts (0xc0000409) without it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337084498 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9023#issuecomment-6337084498). Originally posted by [hypermoist](https://github.com/hypermoist) on 2026-10-22T09:10:13Z. --- @xXPBSXx thanks for the Windows run. Building with only `Unimplemented.cpp` reverted makes the result clear: 3/3 passes with the PR and 3/3 aborts (0xc0000409) without it.
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!9023
No description provided.