fix(audio): export the sceAudioOutEx bitstream port functions #2764

Merged
Get-fix merged 1 commit from upstream-pr/2764 into main 2026-10-10 20:12:41 +00:00
Get-fix commented 2026-10-10 13:15:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Get-fix on 2026-10-10T13:15:35Z.


What

Jelly5 (PPSA99505) imports sceAudioOutExGetMonitorInfo (PhnNN0UEV6Y), sceAudioOutExConfigureOutput (VcE+gXSwFXI), sceAudioOutExOpen (6X6dp+07h4U) and sceAudioOutExClose (0TfjSulCV2A) from libSceAudioOut and fails to load because no library exports them. It calls them only for its HDMI bitstream setting, which is off by default (jelly5_bitstream.cpp, settings.h). Their signatures are unconfirmed, so they are exported without an implementation and throw <name> not implemented if called, as ec2bb21e does for sceSaveDataCancel. TechnicalDebt records what Jelly5 and EVO-PLAYER-PS5 use them for. The new audio_out_ex test checks that each call reports not implemented.

This was closed by the intake pause; the same branch and results are in #1578.

Tested

Windows 11 (WinLibs GCC 15.2.0 r7), Release, full build with BUILD_TESTING=ON on main b69270dd:

  • ctest -R audio_out --repeat until-fail:5: 8/8. These are the only tests that link libSceAudioOut. With a silent return 0 and a wrong message planted, audio_out_ex fails and names both.
  • tools/check_conventions.py --base origin/main and tools/check_test_registration.py pass.
  • Jelly5 v0.6.1, with the same converted executable and libraries, swapping only libSceAudioOut.prx, two runs each: main stops at FAIL: unresolved ELF import PhnNN0UEV6Y from libSceAudioOut.prx; this branch stops at FAIL: unresolved ELF import oxMp8uPqa+U from libkernel.prx (pthread_set_name_np, #1872).

Not tested on Linux.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4811473500 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2764). Originally posted by [Get-fix](https://github.com/Get-fix) on 2026-10-10T13:15:35Z. --- ### What Jelly5 (PPSA99505) imports `sceAudioOutExGetMonitorInfo` (`PhnNN0UEV6Y`), `sceAudioOutExConfigureOutput` (`VcE+gXSwFXI`), `sceAudioOutExOpen` (`6X6dp+07h4U`) and `sceAudioOutExClose` (`0TfjSulCV2A`) from libSceAudioOut and fails to load because no library exports them. It calls them only for its HDMI bitstream setting, which is off by default ([`jelly5_bitstream.cpp`](https://github.com/02dnot/Jelly5/blob/552b866d89b2a58b27f7f7b0484dc743ce235526/app/src/jelly5_bitstream.cpp#L110-L179), [`settings.h`](https://github.com/02dnot/Jelly5/blob/552b866d89b2a58b27f7f7b0484dc743ce235526/app/src/app/settings.h#L41)). Their signatures are unconfirmed, so they are exported without an implementation and throw `<name> not implemented` if called, as ec2bb21e does for `sceSaveDataCancel`. TechnicalDebt records what Jelly5 and EVO-PLAYER-PS5 use them for. The new `audio_out_ex` test checks that each call reports not implemented. This was closed by the intake pause; the same branch and results are in [#1578](https://github.com/boykopovar/AnyPS5/issues/1578#issuecomment-6097868282). ### Tested Windows 11 (WinLibs GCC 15.2.0 r7), Release, full build with `BUILD_TESTING=ON` on `main` b69270dd: - `ctest -R audio_out --repeat until-fail:5`: 8/8. These are the only tests that link libSceAudioOut. With a silent `return 0` and a wrong message planted, `audio_out_ex` fails and names both. - `tools/check_conventions.py --base origin/main` and `tools/check_test_registration.py` pass. - Jelly5 v0.6.1, with the same converted executable and libraries, swapping only `libSceAudioOut.prx`, two runs each: `main` stops at `FAIL: unresolved ELF import PhnNN0UEV6Y from libSceAudioOut.prx`; this branch stops at `FAIL: unresolved ELF import oxMp8uPqa+U from libkernel.prx` (`pthread_set_name_np`, #1872). Not tested on Linux. ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes (Claude Code)
github-actions[bot] commented 2026-10-10 13:15:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T13:15:45Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097887646 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2764#issuecomment-6097887646). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T13:15:45Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
github-actions[bot] commented 2026-10-10 13:16:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T13:16:03Z.


Progress report (ba2a0a3 → f2b4bf3)

📉 System libraries: 84.41% (-0.11%, +4 declared functions)

🆕 4 declared as stubs
Library Name
libSceAudioOut sceAudioOutExClose
libSceAudioOut sceAudioOutExConfigureOutput
libSceAudioOut sceAudioOutExGetMonitorInfo
libSceAudioOut sceAudioOutExOpen
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097890149 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2764#issuecomment-6097890149). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T13:16:03Z. --- <!-- progress-report --> ### Progress report (ba2a0a3 → f2b4bf3) 📉 **System libraries**: 84.41% (-0.11%, +4 declared functions) <details> <summary>🆕 4 declared as stubs</summary> | Library | Name | | - | - | | libSceAudioOut | `sceAudioOutExClose` | | libSceAudioOut | `sceAudioOutExConfigureOutput` | | libSceAudioOut | `sceAudioOutExGetMonitorInfo` | | libSceAudioOut | `sceAudioOutExOpen` | </details>
babyhuey commented 2026-10-10 18:39:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T18:39:03Z.


Linux, since the description says it wasn't tested there. f2b4bf3b merged onto main 9c5d67fb (clean), Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release, catalog builds with sce_module/libc.prx unwrapped (#2605).

  • audio_out_ex passes 5/5 on both (--repeat until-fail:5).
  • Jelly5 (PPSA99505) and Emby5 (PPSA99515) stop at PhnNN0UEV6Y on main and both get past it to oxMp8uPqa+U (pthread_set_name_np, #1872) on both. Linux: app.elf: symbol lookup error: app.elf: undefined symbol: oxMp8uPqa+U.

Surround Sound Studio and Nuvio PS5 import these four as well as the sceAudioOutSys ones in #2887, and EVO Player reaches sceAudioOutExOpen once #2887 is in. With both PRs, Surround Sound Studio clears every audio import (details in #2887).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100887532 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2764#issuecomment-6100887532). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-10T18:39:03Z. --- Linux, since the description says it wasn't tested there. f2b4bf3b merged onto `main` 9c5d67fb (clean), Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release, catalog builds with `sce_module/libc.prx` unwrapped (#2605). - `audio_out_ex` passes 5/5 on both (`--repeat until-fail:5`). - Jelly5 (PPSA99505) and Emby5 (PPSA99515) stop at `PhnNN0UEV6Y` on `main` and both get past it to `oxMp8uPqa+U` (`pthread_set_name_np`, #1872) on both. Linux: `app.elf: symbol lookup error: app.elf: undefined symbol: oxMp8uPqa+U`. Surround Sound Studio and Nuvio PS5 import these four as well as the `sceAudioOutSys` ones in #2887, and EVO Player reaches `sceAudioOutExOpen` once #2887 is in. With both PRs, Surround Sound Studio clears every audio import (details in #2887).
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!2764
No description provided.