feat(libSceAudioIn): implement sceAudioInHqOpen and sceAudioInAsyncOpen #3669

Merged
MarcZX10 merged 1 commit from upstream-pr/3669 into main 2026-10-11 21:46:54 +00:00
MarcZX10 commented 2026-10-11 15:07:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T15:07:25Z.


What

Implement the two reported libSceAudioIn entry points using the existing shared capture-port table, so sceAudioInInput, sceAudioInGetSilentState and sceAudioInClose accept their handles. sceAudioInHqOpen accepts the documented 128-sample, 48 kHz case; sceAudioInAsyncOpen accepts supported 128- and 256-sample configurations, reports oversized grains, and throws when the available sources do not establish behavior.

This carries the contributor-supplied commit from the branch linked in issue #3340. I preserved its commit metadata and existing Claude co-author line. The resulting commit identifies its original author metadata as David <[email protected]>; Marc is the committer and PR author.

Tested

  • Linux, GCC 12.2, Release: built guest_audio_in_tests; guest_audio_in_capture and guest_audio_in_no_device pass (2/2).
  • Regression check: with the main implementation restored, both expanded tests fail on sceAudioInHqOpen not implemented; with this change restored, they pass (2/2).
  • tools/check_conventions.py --base upstream/main and git diff --check pass.
  • The issue contributor reports Windows 11 / MinGW-w64 GCC 15.2 Release tests passing, including the two focused AudioIn tests (3/3) and 507/507 selected tests, with an unrelated #3329 test fix applied locally. Those Windows results were not rerun here. No console or title run is claimed.

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 (the carried commit retains its existing Claude co-author attribution)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820022338 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3669). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T15:07:25Z. --- ### What Implement the two reported `libSceAudioIn` entry points using the existing shared capture-port table, so `sceAudioInInput`, `sceAudioInGetSilentState` and `sceAudioInClose` accept their handles. `sceAudioInHqOpen` accepts the documented 128-sample, 48 kHz case; `sceAudioInAsyncOpen` accepts supported 128- and 256-sample configurations, reports oversized grains, and throws when the available sources do not establish behavior. This carries the contributor-supplied commit from the branch linked in [issue #3340](https://github.com/boykopovar/AnyPS5/issues/3340). I preserved its commit metadata and existing Claude co-author line. The resulting commit identifies its original author metadata as `David <[email protected]>`; Marc is the committer and PR author. ### Tested - Linux, GCC 12.2, Release: built `guest_audio_in_tests`; `guest_audio_in_capture` and `guest_audio_in_no_device` pass (2/2). - Regression check: with the `main` implementation restored, both expanded tests fail on `sceAudioInHqOpen not implemented`; with this change restored, they pass (2/2). - `tools/check_conventions.py --base upstream/main` and `git diff --check` pass. - The issue contributor reports Windows 11 / MinGW-w64 GCC 15.2 Release tests passing, including the two focused AudioIn tests (3/3) and 507/507 selected tests, with an unrelated #3329 test fix applied locally. Those Windows results were not rerun here. No console or title run is claimed. ### 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 (the carried commit retains its existing Claude co-author attribution)
github-actions[bot] commented 2026-10-11 15:07:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T15:07:46Z.


Progress report (a11c8f7 → 9ac583b)

📈 System libraries: 85.84% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceAudioIn sceAudioInOpen
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110408042 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3669#issuecomment-6110408042). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T15:07:46Z. --- <!-- progress-report --> ### Progress report (a11c8f7 → 9ac583b) 📈 **System libraries**: 85.84% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAudioIn | `sceAudioInOpen` | </details>
adriadam10 commented 2026-10-11 21:46:51 +00:00 (Migrated from github.com)

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


Checked the build and ctest on this PR merged onto main (21/21, guest_audio_in_capture and guest_audio_in_no_device pass), and both fail with Export.cpp reverted. The 384-sample async limit and the 48 kHz/128-sample HqOpen case match SharpProspero's AudioIn.cs, and everything not established by sources throws and is listed in TechnicalDebt (Functional); merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114146985 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3669#issuecomment-6114146985). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:46:51Z. --- Checked the build and ctest on this PR merged onto main (21/21, `guest_audio_in_capture` and `guest_audio_in_no_device` pass), and both fail with `Export.cpp` reverted. The 384-sample async limit and the 48 kHz/128-sample HqOpen case match SharpProspero's `AudioIn.cs`, and everything not established by sources throws and is listed in TechnicalDebt (Functional); 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!3669
No description provided.