feat(libSceVoice): accept WriteToIPort on input ports (PPSA34015) #6090

Closed
notaxeltv wants to merge 1 commit from upstream-pr/6090 into main
notaxeltv commented 2026-10-14 21:41:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by notaxeltv on 2026-10-14T21:41:07Z.


What

sceVoiceWriteToIPort was a stub that throws. Validate an input port and accept the buffer (no voice pipeline yet), mirroring sceVoiceReadFromOPort which returns empty output. PPSA34015 imports it (tools/import_audit.py stub).

Tested

Windows 10, WinLibs GCC 15.2.0, guest_voice passes. tools/check_conventions.py --base upstream/main passes.

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 (none)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA34015 (stub import)
  • GPUs tested: n/a
  • AI-assisted: yes

Made with Cursor

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4864930154 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6090). Originally posted by [notaxeltv](https://github.com/notaxeltv) on 2026-10-14T21:41:07Z. --- ### What `sceVoiceWriteToIPort` was a stub that throws. Validate an input port and accept the buffer (no voice pipeline yet), mirroring `sceVoiceReadFromOPort` which returns empty output. PPSA34015 imports it (`tools/import_audit.py` stub). ### Tested Windows 10, WinLibs GCC 15.2.0, `guest_voice` passes. `tools/check_conventions.py --base upstream/main` passes. ### 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 (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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 (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA34015 (stub import) - [x] GPUs tested: n/a - [x] AI-assisted: yes Made with [Cursor](https://cursor.com)
github-actions[bot] commented 2026-10-14 21:41:57 +00:00 (Migrated from github.com)

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


Progress report (153d5d4 → 3d5d924)

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

✅ 1 implemented
Library Name
libSceVoice sceVoiceWriteToIPort
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6179123581 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6090#issuecomment-6179123581). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T21:41:57Z. --- <!-- progress-report --> ### Progress report (153d5d4 → 3d5d924) 📈 **System libraries**: 88.72% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVoice | `sceVoiceWriteToIPort` | </details>
coltken95 commented 2026-10-15 17:57:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T17:57:08Z.


Tested on Linux x86-64 (Release build), with 3d5d924cb merged into main 8cd937e29:

  • With the PR: guest_voice passes.
  • With main's libSceVoice/Export.cpp: guest_voice aborts with what(): sceVoiceWriteToIPort not implemented.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6198734840 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6090#issuecomment-6198734840). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-15T17:57:08Z. --- Tested on Linux x86-64 (Release build), with 3d5d924cb merged into main 8cd937e29: - With the PR: `guest_voice` passes. - With main's `libSceVoice/Export.cpp`: `guest_voice` aborts with `what(): sceVoiceWriteToIPort not implemented`. AI-assisted: yes (Claude Code)
adriadam10 commented 2026-10-16 22:44:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T22:44:25Z.

Review: CHANGES_REQUESTED


Thanks, the port validation matches sceVoiceReadFromOPort. A few things to fix:

  • docs/dev/debt/libSceVoice.md: the stub now accepts and discards audio, so it needs a line under ### Silent stubs (what is dropped, where the signature and behaviour come from, what is unknown). The sceVoiceResetPort line in the same file still says sceVoiceWriteToIPort throws; update it.
  • core/libs/prx/libSceVoice/Export.cpp:205-210: leaving *size unchanged tells the title that every byte was consumed although they are discarded. None of the references (KytyPS5, shadPS4, prosper) has a body for this call, so state in the debt line why that value was chosen, or write 0 consumed bytes (what #6447 does) and say which is assumed.
  • Overlap: #6447 also adds sceVoiceWriteToIPort in the same file. CONTRIBUTING asks that no two open PRs implement the same function; please coordinate which one lands it and list it under Depends on.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5554451653 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6090#pullrequestreview-5554451653). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T22:44:25Z. **Review:** CHANGES_REQUESTED --- Thanks, the port validation matches `sceVoiceReadFromOPort`. A few things to fix: - `docs/dev/debt/libSceVoice.md`: the stub now accepts and discards audio, so it needs a line under `### Silent stubs` (what is dropped, where the signature and behaviour come from, what is unknown). The `sceVoiceResetPort` line in the same file still says `sceVoiceWriteToIPort` throws; update it. - `core/libs/prx/libSceVoice/Export.cpp:205-210`: leaving `*size` unchanged tells the title that every byte was consumed although they are discarded. None of the references (KytyPS5, shadPS4, prosper) has a body for this call, so state in the debt line why that value was chosen, or write 0 consumed bytes (what #6447 does) and say which is assumed. - Overlap: #6447 also adds `sceVoiceWriteToIPort` in the same file. CONTRIBUTING asks that no two open PRs implement the same function; please coordinate which one lands it and list it under Depends on.
XairRrR commented 2026-11-02 21:28:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T21:28:25Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

This pull request does not merge cleanly into main (9090972b7e): head 3d5d924cb2 conflicts in

  • core/libs/tests/GuestVoice.cpp

Please rebase it onto current main. I will review the change once it merges cleanly.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5743608061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6090#pullrequestreview-5743608061). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-02T21:28:25Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (9090972b7e91fd266819cbd77a8b058e177b5682): head 3d5d924cb273da603c337a901cc8901eec5e54ef conflicts in - `core/libs/tests/GuestVoice.cpp` Please rebase it onto current `main`. I will review the change once it merges cleanly. <!-- anyps5-bots job=2544 head=3d5d924cb273da603c337a901cc8901eec5e54ef -->

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