feat(libSceVoice): implement sceVoiceResetPort #5817

Merged
snipeTR merged 1 commit from upstream-pr/5817 into main 2026-10-14 15:23:47 +00:00
snipeTR commented 2026-10-14 12:14:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by snipeTR on 2026-10-14T12:14:51Z.


What

Implements sceVoiceResetPort(uint32_t portId). The signature is the PS Vita one in VitaSDK and the PS3 cellVoiceResetPort in RPCS3. Ports here buffer nothing, so a reset checks that the library is initialized and the port exists, as RPCS3 does, and keeps the port's connections, volume and mute flag. Adds a CMakeLists for libSceVoice, equivalent to the default rule, to register the library's first test.

Tested

Linux (Ubuntu 24.04 container, GCC 13.3): new guest_voice passes. It checks a reset before initialization, after sceVoiceEnd and for unknown or deleted ports throws, and that a reset keeps port info, volume, mute flag and connections. tools/check_test_registration.py, tools/check_conventions.py pass; tools/progress.py --compare reports +1 implemented function. Windows not tested. No title tested.

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
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4857698618 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5817). Originally posted by [snipeTR](https://github.com/snipeTR) on 2026-10-14T12:14:51Z. --- ### What Implements `sceVoiceResetPort(uint32_t portId)`. The signature is the PS Vita one in VitaSDK and the PS3 `cellVoiceResetPort` in RPCS3. Ports here buffer nothing, so a reset checks that the library is initialized and the port exists, as RPCS3 does, and keeps the port's connections, volume and mute flag. Adds a CMakeLists for libSceVoice, equivalent to the default rule, to register the library's first test. ### Tested Linux (Ubuntu 24.04 container, GCC 13.3): new `guest_voice` passes. It checks a reset before initialization, after `sceVoiceEnd` and for unknown or deleted ports throws, and that a reset keeps port info, volume, mute flag and connections. `tools/check_test_registration.py`, `tools/check_conventions.py` pass; `tools/progress.py --compare` reports +1 implemented function. Windows not tested. No title tested. ### 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] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-14 13:41:06 +00:00 (Migrated from github.com)

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


Progress report (e736e5b → ea80fe1)

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

✅ 1 implemented
Library Name
libSceVoice sceVoiceResetPort
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6169741944 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5817#issuecomment-6169741944). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T13:41:06Z. --- <!-- progress-report --> ### Progress report (e736e5b → ea80fe1) 📈 **System libraries**: 88.39% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVoice | `sceVoiceResetPort` | </details>
adriadam10 commented 2026-10-14 13:43:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T13:43:30Z.


Checked on Linux merged onto current main: build + scoped ctest green, guest_voice passes and fails when sceVoiceResetPort is reverted to the throwing stub. The (uint32_t portId) signature and the no-op-with-validation behaviour are documented as assumptions in docs/dev/debt/libSceVoice.md, and the new CMakeLists matches the other libraries' pattern. Merging once the full build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6169790373 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5817#issuecomment-6169790373). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T13:43:30Z. --- Checked on Linux merged onto current main: build + scoped ctest green, `guest_voice` passes and fails when `sceVoiceResetPort` is reverted to the throwing stub. The `(uint32_t portId)` signature and the no-op-with-validation behaviour are documented as assumptions in `docs/dev/debt/libSceVoice.md`, and the new CMakeLists matches the other libraries' pattern. Merging once the full build is green.
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!5817
No description provided.