feat(audio): complete all stubs in libSceAudioIn and libSceAudioOut #9818

Closed
Delciob wants to merge 1 commit from upstream-pr/9818 into main
Delciob commented 2026-10-22 16:19:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Delciob on 2026-10-22T16:19:34Z.


What

Complete remaining stubs in libSceAudioIn and libSceAudioOut.

Tested

Windows 10 x64, audio subsystem build.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: no
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4970593276 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9818). Originally posted by [Delciob](https://github.com/Delciob) on 2026-10-22T16:19:34Z. --- ### What Complete remaining stubs in libSceAudioIn and libSceAudioOut. ### Tested Windows 10 x64, audio subsystem build. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: no
MarcZX10 commented 2026-10-22 16:47:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:47:24Z.

Review: CHANGES_REQUESTED


I reviewed head 3bb18b2fcd6dde96666992c87d659c09fcfad267. The sceAudioInIsPadEmbeddedMic change validates that a handle exists but returns 0 for every valid device; the debt entry says the native result depends on whether the resolved device is an embedded mic (type 8), which the host cannot classify. This would silently report false for an embedded mic rather than implement the query. Please retain the explicit unimplemented path until a device-type mapping exists, or implement and test the classification.

sceAudioOutDeviceIdOpen remains a no-argument export that now returns success despite debt documenting the required device ID/port/sample/frequency/format arguments and absent host-device mapping. sceAudioOut2MasteringInit only changes the unimplemented helper to a direct exception; the debt entry records a native nonzero-flags error code, so either implement the evidenced result or preserve the prescribed helper while unresolved.

Open PR #9826 touches these same AudioIn/AudioOut exports, so coordinate instead of maintaining duplicate changes. CONTRIBUTING.md requires the unimplemented helper. python3 tools/check_conventions.py --base upstream/main and git diff --check pass, but the PR only reports an audio subsystem build and adds no focused tests. The merge-tree check reports a conflict in AudioOut.cpp against current main; sync and resolve it before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617750703 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9818#pullrequestreview-5617750703). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T16:47:24Z. **Review:** CHANGES_REQUESTED --- I reviewed head `3bb18b2fcd6dde96666992c87d659c09fcfad267`. The `sceAudioInIsPadEmbeddedMic` change validates that a handle exists but returns 0 for every valid device; the debt entry says the native result depends on whether the resolved device is an embedded mic (type 8), which the host cannot classify. This would silently report false for an embedded mic rather than implement the query. Please retain the explicit unimplemented path until a device-type mapping exists, or implement and test the classification. `sceAudioOutDeviceIdOpen` remains a no-argument export that now returns success despite debt documenting the required device ID/port/sample/frequency/format arguments and absent host-device mapping. `sceAudioOut2MasteringInit` only changes the unimplemented helper to a direct exception; the debt entry records a native nonzero-flags error code, so either implement the evidenced result or preserve the prescribed helper while unresolved. Open PR #9826 touches these same AudioIn/AudioOut exports, so coordinate instead of maintaining duplicate changes. `CONTRIBUTING.md` requires the unimplemented helper. `python3 tools/check_conventions.py --base upstream/main` and `git diff --check` pass, but the PR only reports an audio subsystem build and adds no focused tests. The merge-tree check reports a conflict in `AudioOut.cpp` against current `main`; sync and resolve it before merge.

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