feat(libSceAudioIn): export sceAudioInInit #3006

Merged
babyhuey merged 1 commit from upstream-pr/3006 into main 2026-10-10 22:04:53 +00:00
babyhuey commented 2026-10-10 20:26:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T20:26:21Z.


What

Exports sceAudioInInit (SxQprgjttKE) from libSceAudioIn, returning 0. libSceAudioIn needs no library-wide setup here, since each sceAudioInOpen opens its own SDL capture device, so this matches sceAudioOutInit in libSceAudioOut, which also returns 0.

PSBox Cloud Gaming (PPSA99810) stops at it on main 56fb1b3b (catalog build, eboot.bin and sce_module/libc.prx unwrapped as #2605 requires; tracked in #1578):

  • main, Linux: app.elf: symbol lookup error: app.elf: undefined symbol: SxQprgjttKE
  • with this PR, Linux: app.elf: symbol lookup error: app.elf: undefined symbol: oxMp8uPqa+U (pthread_set_name_np, #1872)

Tested

Linux (Ubuntu 24.04, GCC 13, Release) on 56fb1b3b: guest_audio_in_capture and guest_audio_in_no_device pass 5/5 (--repeat until-fail:5); both now call sceAudioInInit first. check_conventions.py passes. Windows 11 (MinGW-w64 GCC 15.2 from WinLibs, Release): both tests 5/5 with no warnings. The Windows loader reports FAIL: unresolved ELF import oxMp8uPqa+U (pthread_set_name_np) from libkernel.prx first for PSBox, on main and with this PR, so it reaches sceAudioInInit there only once #1872 is in.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4814208273 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3006). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-10T20:26:21Z. --- ### What Exports `sceAudioInInit` (`SxQprgjttKE`) from libSceAudioIn, returning 0. libSceAudioIn needs no library-wide setup here, since each `sceAudioInOpen` opens its own SDL capture device, so this matches `sceAudioOutInit` in libSceAudioOut, which also returns 0. PSBox Cloud Gaming (PPSA99810) stops at it on `main` 56fb1b3b (catalog build, `eboot.bin` and `sce_module/libc.prx` unwrapped as #2605 requires; tracked in #1578): - `main`, Linux: `app.elf: symbol lookup error: app.elf: undefined symbol: SxQprgjttKE` - with this PR, Linux: `app.elf: symbol lookup error: app.elf: undefined symbol: oxMp8uPqa+U` (`pthread_set_name_np`, #1872) ### Tested Linux (Ubuntu 24.04, GCC 13, Release) on 56fb1b3b: `guest_audio_in_capture` and `guest_audio_in_no_device` pass 5/5 (`--repeat until-fail:5`); both now call `sceAudioInInit` first. `check_conventions.py` passes. Windows 11 (MinGW-w64 GCC 15.2 from WinLibs, Release): both tests 5/5 with no warnings. The Windows loader reports `FAIL: unresolved ELF import oxMp8uPqa+U (pthread_set_name_np) from libkernel.prx` first for PSBox, on `main` and with this PR, so it reaches `sceAudioInInit` there only once #1872 is in. ### 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 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
github-actions[bot] commented 2026-10-10 20:26:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T20:26:42Z.


Progress report (56fb1b3 → 6f1ef27)

➖ System libraries: 84.44% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceAudioIn sceAudioInInit
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6101840860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3006#issuecomment-6101840860). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T20:26:42Z. --- <!-- progress-report --> ### Progress report (56fb1b3 → 6f1ef27) ➖ **System libraries**: 84.44% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAudioIn | `sceAudioInInit` | </details>
adriadam10 commented 2026-10-10 22:04:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:04:50Z.


Checked on Linux: scoped build and ctest pass (guest_audio_in_capture, guest_audio_in_no_device), and the tests fail to link without the change. NID SxQprgjttKE matches sceAudioInInit, and returning 0 agrees with sceAudioOutInit, shadPS4 and prosper. The red write-watch (macos-15-intel) job is unrelated to this change (rerun requested); merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102666013 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3006#issuecomment-6102666013). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T22:04:50Z. --- Checked on Linux: scoped build and ctest pass (`guest_audio_in_capture`, `guest_audio_in_no_device`), and the tests fail to link without the change. NID `SxQprgjttKE` matches `sceAudioInInit`, and returning 0 agrees with `sceAudioOutInit`, shadPS4 and prosper. The red `write-watch (macos-15-intel)` job is unrelated to this change (rerun requested); merging once CI is green.
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!3006
No description provided.