feat(libSceProprietaryVoiceChatHelperPrx): implement the voice chat helper lifecycle #5017

Merged
adriadam10 merged 1 commit from upstream-pr/5017 into main 2026-10-13 08:47:32 +00:00
adriadam10 commented 2026-10-13 08:23:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T08:23:09Z.


What

Re-opens #2796 by @lmaths, which the intake bot closed ("intake paused") without a review. The commit is theirs, cherry-picked with its authorship; the only change is that its TechnicalDebt entry moved to docs/dev/debt/libSceProprietaryVoiceChatHelperPrx.md, since main split the debt file per library after #2796 was written.

libSceProprietaryVoiceChatHelperPrx goes from 0/4 to 3/4. It is how a title announces that it uses its own voice chat instead of the system's; the host has no system voice chat, so only that path is implemented:

  • Initialize / Terminate track whether the library is initialized.
  • SetVoiceChatState returns 0 and records nothing (its state argument is unknown).
  • GetVoiceChatUsageState still throws: whether the state is returned or written through a pointer, and its encoding, are unknown.
  • Misuse (second Initialize, any call before Initialize or after Terminate) throws, as the library's error codes are unknown.

Is it a system library? Yes: libNidResolver lists libSceProprietaryVoiceChatHelper.native among the console's sysmodules (id 0x132), the SDK 12 docs have a ProprietaryVoiceChatHelper Overview/Reference, and PPSA23566's sce_module/ ships only libc.prx and libSceNpCppWebApi.prx. The four signatures remain unknown (names from shadPS4's aerolib list, as in #992); no reference implements the library.

Tested

  • Linux, GCC, Release, -DBUILD_TESTING=ON, built on the NAS (sccache-dist), after rebasing on main at c080fc2d5+: libs target, guest_proprietary_voice_chat_helper, test_registration, conventions_*, import_audit, progress_* pass.
  • The new test is proven to run: changing the expected SetVoiceChatState result to 1 aborts it (exit 134); restored, it passes.
  • python3 tools/check_conventions.py --base upstream/main passes.
  • No title was run; nothing measured on console hardware (as in #2796). Windows is left to CI.

Checklist

  • Based on current main; no other open PR implements the same functions (#4893 only mentions the library in a debt line of libSceAudioOut)
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4840455644 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5017). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T08:23:09Z. --- ### What Re-opens #2796 by @lmaths, which the intake bot closed ("intake paused") without a review. The commit is theirs, cherry-picked with its authorship; the only change is that its TechnicalDebt entry moved to `docs/dev/debt/libSceProprietaryVoiceChatHelperPrx.md`, since `main` split the debt file per library after #2796 was written. `libSceProprietaryVoiceChatHelperPrx` goes from 0/4 to 3/4. It is how a title announces that it uses its own voice chat instead of the system's; the host has no system voice chat, so only that path is implemented: - `Initialize` / `Terminate` track whether the library is initialized. - `SetVoiceChatState` returns 0 and records nothing (its state argument is unknown). - `GetVoiceChatUsageState` still throws: whether the state is returned or written through a pointer, and its encoding, are unknown. - Misuse (second `Initialize`, any call before `Initialize` or after `Terminate`) throws, as the library's error codes are unknown. Is it a system library? Yes: libNidResolver lists `libSceProprietaryVoiceChatHelper.native` among the console's sysmodules (id `0x132`), the SDK 12 docs have a ProprietaryVoiceChatHelper Overview/Reference, and PPSA23566's `sce_module/` ships only `libc.prx` and `libSceNpCppWebApi.prx`. The four signatures remain unknown (names from shadPS4's aerolib list, as in #992); no reference implements the library. ### Tested - Linux, GCC, Release, `-DBUILD_TESTING=ON`, built on the NAS (sccache-dist), after rebasing on `main` at `c080fc2d5`+: `libs` target, `guest_proprietary_voice_chat_helper`, `test_registration`, `conventions_*`, `import_audit`, `progress_*` pass. - The new test is proven to run: changing the expected `SetVoiceChatState` result to 1 aborts it (exit 134); restored, it passes. - `python3 tools/check_conventions.py --base upstream/main` passes. - No title was run; nothing measured on console hardware (as in #2796). Windows is left to CI. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions (#4893 only mentions the library in a debt line of `libSceAudioOut`) - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-13 08:23:35 +00:00 (Migrated from github.com)

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


Progress report (cac4e96 → e933285)

📈 System libraries: 88.37% (+0.08%, +3 implemented functions)

✅ 3 implemented
Library Name
libSceProprietaryVoiceChatHelperPrx sceProprietaryVoiceChatHelperInitialize
libSceProprietaryVoiceChatHelperPrx sceProprietaryVoiceChatHelperSetVoiceChatState
libSceProprietaryVoiceChatHelperPrx sceProprietaryVoiceChatHelperTerminate
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141433478 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5017#issuecomment-6141433478). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T08:23:35Z. --- <!-- progress-report --> ### Progress report (cac4e96 → e933285) 📈 **System libraries**: 88.37% (+0.08%, +3 implemented functions) <details> <summary>✅ 3 implemented</summary> | Library | Name | | - | - | | libSceProprietaryVoiceChatHelperPrx | `sceProprietaryVoiceChatHelperInitialize` | | libSceProprietaryVoiceChatHelperPrx | `sceProprietaryVoiceChatHelperSetVoiceChatState` | | libSceProprietaryVoiceChatHelperPrx | `sceProprietaryVoiceChatHelperTerminate` | </details>
github-actions[bot] commented 2026-10-13 08:29:55 +00:00 (Migrated from github.com)

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


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#3826 sceProprietaryVoiceChatHelperGetVoiceChatUsageState
sceProprietaryVoiceChatHelperInitialize
sceProprietaryVoiceChatHelperTerminate
core/libs/prx/libSceProprietaryVoiceChatHelperPrx/CMakeLists.txt
core/libs/tests/GuestProprietaryVoiceChatHelper.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141536053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5017#issuecomment-6141536053). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T08:29:55Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3826 | | `sceProprietaryVoiceChatHelperGetVoiceChatUsageState`<br>`sceProprietaryVoiceChatHelperInitialize`<br>`sceProprietaryVoiceChatHelperTerminate` | `core/libs/prx/libSceProprietaryVoiceChatHelperPrx/CMakeLists.txt`<br>`core/libs/tests/GuestProprietaryVoiceChatHelper.cpp` |
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!5017
No description provided.