refactor(audioin): name X+4jdIS75P0 sceAudioInIsPadEmbeddedMic #3577

Merged
parl0v merged 1 commit from upstream-pr/3577 into main 2026-10-11 21:36:48 +00:00
parl0v commented 2026-10-11 13:37:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-11T13:37:08Z.


What

X+4jdIS75P0 (libSceAudioIn) is the throwing stub sceAudioInUnknown_X4jdIS75P0(void), listed in TechnicalDebt as "unknown name, signature". This gives it both.

Name — compute_nid("sceAudioInIsPadEmbeddedMic") == "X+4jdIS75P0", confirmed with the repo's own tools/nid_names.py; also in the merged NID database (zecoxao/sce_symbols#22).

Signature — from the call-site evidence in #2355: Ghost of Yotei (PPSA26344) calls it right after sceAudioInOpen, passing only the returned handle and reading a 32-bit result, i.e. int32_t(int32_t handle). The current (void) declaration does not match.

Reached by two titles: Astro Bot (PPSA21564) imports it; Ghost of Yotei (PPSA26344) calls it (#2355).

This renames the stub to sceAudioInIsPadEmbeddedMic, drops the APS5_EXPORT alias, and corrects the signature to (int32_t handle). Behaviour is unchanged: it still throws, and the result's meaning is unconfirmed, so no value is invented. The TechnicalDebt entry is updated. Side effect: the placeholder was also exported under its own name, which nid_patcher hashed into lhtUx6-cL2A, a NID no Sony module has; that one is gone, and X+4jdIS75P0 is still exported.

Tested

Windows 10 (19045), WinLibs MinGW GCC 15.2.0 r7, Release.

  • libSceAudioIn.prx export table (objdump -p): X+4jdIS75P0 present, lhtUx6-cL2A gone.
  • tools/check_conventions.py --base origin/main passes.
  • tools/pr_overlap.py reports no overlap with open pull requests.

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; silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

Replaces #3072, which the intake pause closed; same change, reverified on current main.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4819457346 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3577). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-11T13:37:08Z. --- ### What `X+4jdIS75P0` (libSceAudioIn) is the throwing stub `sceAudioInUnknown_X4jdIS75P0(void)`, listed in TechnicalDebt as "unknown name, signature". This gives it both. **Name** — `compute_nid("sceAudioInIsPadEmbeddedMic") == "X+4jdIS75P0"`, confirmed with the repo's own `tools/nid_names.py`; also in the merged NID database (zecoxao/sce_symbols#22). **Signature** — from the call-site evidence in #2355: Ghost of Yotei (PPSA26344) calls it right after `sceAudioInOpen`, passing only the returned handle and reading a 32-bit result, i.e. `int32_t(int32_t handle)`. The current `(void)` declaration does not match. Reached by two titles: Astro Bot (PPSA21564) imports it; Ghost of Yotei (PPSA26344) calls it (#2355). This renames the stub to `sceAudioInIsPadEmbeddedMic`, drops the `APS5_EXPORT` alias, and corrects the signature to `(int32_t handle)`. Behaviour is unchanged: it still throws, and the result's meaning is unconfirmed, so no value is invented. The TechnicalDebt entry is updated. Side effect: the placeholder was also exported under its own name, which `nid_patcher` hashed into `lhtUx6-cL2A`, a NID no Sony module has; that one is gone, and `X+4jdIS75P0` is still exported. ### Tested Windows 10 (19045), WinLibs MinGW GCC 15.2.0 r7, Release. - `libSceAudioIn.prx` export table (`objdump -p`): `X+4jdIS75P0` present, `lhtUx6-cL2A` gone. - `tools/check_conventions.py --base origin/main` passes. - `tools/pr_overlap.py` reports no overlap with open pull requests. ### 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 - [x] Unimplemented paths throw; silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository - [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 --- Replaces #3072, which the intake pause closed; same change, reverified on current `main`.
github-actions[bot] commented 2026-10-11 13:37:29 +00:00 (Migrated from github.com)

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


Progress report (a11c8f7 → 93f5220)

➖ System libraries: 85.81% (+0.0%, +1 declared, -1 removed functions)

🆕 1 declared as stubs
Library Name
libSceAudioIn sceAudioInIsPadEmbeddedMic
🗑️ 1 removed
Library Name
libSceAudioIn sceAudioInUnknown_X4jdIS75P0
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109605181 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3577#issuecomment-6109605181). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T13:37:29Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → 93f5220) ➖ **System libraries**: 85.81% (+0.0%, +1 declared, -1 removed functions) <details> <summary>🆕 1 declared as stubs</summary> | Library | Name | | - | - | | libSceAudioIn | `sceAudioInIsPadEmbeddedMic` | </details> <details> <summary>🗑️ 1 removed</summary> | Library | Name | | - | - | | libSceAudioIn | `sceAudioInUnknown_X4jdIS75P0` | </details>
adriadam10 commented 2026-10-11 21:36:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:36:45Z.


Checked: compute_nid("sceAudioInIsPadEmbeddedMic") gives X+4jdIS75P0 with tools/nid_names.py; the renamed stub has no APS5_EXPORT alias left (no double export); the TechnicalDebt line is accurate and still throws, so nothing is invented. libSceAudioIn builds and its ctest passes (2/2). Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114046425 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3577#issuecomment-6114046425). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:36:45Z. --- Checked: `compute_nid("sceAudioInIsPadEmbeddedMic")` gives `X+4jdIS75P0` with `tools/nid_names.py`; the renamed stub has no `APS5_EXPORT` alias left (no double export); the TechnicalDebt line is accurate and still throws, so nothing is invented. libSceAudioIn builds and its ctest passes (2/2). Merging.
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!3577
No description provided.