refactor(audioin): name X+4jdIS75P0 sceAudioInIsPadEmbeddedMic and fix its signature #3072

Closed
parl0v wants to merge 1 commit from upstream-pr/3072 into main
parl0v commented 2026-10-10 21:36:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-10T21:36:04Z.


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". Recovered with nidhunt (a NID hash-cracker) and confirmed with the repo's own tools/nid_names.py; it is 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 in edi 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 stub 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), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, BUILD_TESTING=ON. Clean build.

  • libSceAudioIn.prx export table (objdump -p): X+4jdIS75P0 present, lhtUx6-cL2A gone.
  • Full ctest: 719/719 passed.
  • tools/check_conventions.py --base origin/main passes.
  • tools/pr_overlap.py: 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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4814602496 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3072). Originally posted by [parl0v](https://github.com/parl0v) on 2026-10-10T21:36:04Z. --- ### 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"`. Recovered with [nidhunt](https://github.com/parl0v/nidhunt) (a NID hash-cracker) and confirmed with the repo's own `tools/nid_names.py`; it is 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 in `edi` 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 stub 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), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, `BUILD_TESTING=ON`. Clean build. - `libSceAudioIn.prx` export table (`objdump -p`): `X+4jdIS75P0` present, `lhtUx6-cL2A` gone. - Full `ctest`: 719/719 passed. - `tools/check_conventions.py --base origin/main` passes. - `tools/pr_overlap.py`: 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
github-actions[bot] commented 2026-10-10 21:36:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T21:36:13Z.


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:6102429051 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3072#issuecomment-6102429051). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T21:36:13Z. --- 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 21:36:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T21:36:28Z.


Progress report (262c031 → 1fa6ba3)

➖ System libraries: 84.44% (+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:6102431085 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3072#issuecomment-6102431085). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T21:36:28Z. --- <!-- progress-report --> ### Progress report (262c031 → 1fa6ba3) ➖ **System libraries**: 84.44% (+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>

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!3072
No description provided.