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

Closed
lmaths wants to merge 1 commit from upstream-pr/2796 into main
lmaths commented 2026-10-10 15:24:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by lmaths on 2026-10-10T15:24:36Z.


What

Implements the libSceProprietaryVoiceChatHelperPrx lifecycle, 0/4 -> 3/4.

The library is how a title announces that it uses its own ("proprietary") voice chat
instead of the system's. The host has no system voice chat to coordinate with, so this
implements only the no-system-voice-chat path:

  • sceProprietaryVoiceChatHelperInitialize / sceProprietaryVoiceChatHelperTerminate
    track whether the library is initialized.
  • sceProprietaryVoiceChatHelperSetVoiceChatState returns success and does nothing:
    there is nothing to notify, and its state argument is unknown, so no state is recorded.
  • sceProprietaryVoiceChatHelperGetVoiceChatUsageState still throws. With the state
    argument unreadable there is no recorded usage state, and whether the console returns
    the state or writes it through an output pointer, and how it encodes it, is unknown.
    Returning 0 would report success with an unwritten output, so it reports nothing
    instead, like the unknown-signature sceNpEntitlementAccess*InfoList getters.

Misuse (initializing twice, or any call before Initialize or after Terminate) throws
rather than guessing: the library's error codes are unknown.

The four signatures remain unknown and are still declared without parameters; no
reference implements this library (the names come from the shadPS4 aerolib NID list, as
recorded for #992). The new behaviour and everything left unverified are recorded in
TechnicalDebt.

The library gets its own CMakeLists.txt to register a lifecycle test, following
libSceVoiceQoS.

Tested

Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs x86_64-ucrt-posix-seh, 15.2.0posix-14.0.0-ucrt-r7),
full build with -DBUILD_TESTING=ON. No title was run; nothing was measured on console hardware.

  • guest_proprietary_voice_chat_helper (new) passes in 1.2 s. It covers the lifecycle
    ordering: every call before Initialize throws, a second Initialize throws,
    SetVoiceChatState returns 0, GetVoiceChatUsageState throws, Terminate returns 0,
    calls after Terminate throw, and reinitializing works.
  • cmake --build build --target libs builds and NID-patches all 1116 steps; the patched
    libSceProprietaryVoiceChatHelperPrx.prx is produced.
  • patched_libraries passes (70 s).
  • progress_report, progress_encoding, import_audit, conventions_function_bodies,
    test_registration, pr_overlap_exports, nid_database_cache pass.
  • python3 tools/check_conventions.py --base origin/main passes.
  • python3 tools/check_test_registration.py build: 551 test executables, 0 built and not run.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4812299299 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2796). Originally posted by [lmaths](https://github.com/lmaths) on 2026-10-10T15:24:36Z. --- ### What Implements the `libSceProprietaryVoiceChatHelperPrx` lifecycle, 0/4 -> 3/4. The library is how a title announces that it uses its own ("proprietary") voice chat instead of the system's. The host has no system voice chat to coordinate with, so this implements only the no-system-voice-chat path: - `sceProprietaryVoiceChatHelperInitialize` / `sceProprietaryVoiceChatHelperTerminate` track whether the library is initialized. - `sceProprietaryVoiceChatHelperSetVoiceChatState` returns success and does nothing: there is nothing to notify, and its state argument is unknown, so no state is recorded. - `sceProprietaryVoiceChatHelperGetVoiceChatUsageState` still throws. With the state argument unreadable there is no recorded usage state, and whether the console returns the state or writes it through an output pointer, and how it encodes it, is unknown. Returning 0 would report success with an unwritten output, so it reports nothing instead, like the unknown-signature `sceNpEntitlementAccess*InfoList` getters. Misuse (initializing twice, or any call before `Initialize` or after `Terminate`) throws rather than guessing: the library's error codes are unknown. The four signatures remain unknown and are still declared without parameters; no reference implements this library (the names come from the shadPS4 aerolib NID list, as recorded for #992). The new behaviour and everything left unverified are recorded in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs). The library gets its own `CMakeLists.txt` to register a lifecycle test, following `libSceVoiceQoS`. ### Tested Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs `x86_64-ucrt-posix-seh`, `15.2.0posix-14.0.0-ucrt-r7`), full build with `-DBUILD_TESTING=ON`. No title was run; nothing was measured on console hardware. - `guest_proprietary_voice_chat_helper` (new) passes in 1.2 s. It covers the lifecycle ordering: every call before `Initialize` throws, a second `Initialize` throws, `SetVoiceChatState` returns 0, `GetVoiceChatUsageState` throws, `Terminate` returns 0, calls after `Terminate` throw, and reinitializing works. - `cmake --build build --target libs` builds and NID-patches all 1116 steps; the patched `libSceProprietaryVoiceChatHelperPrx.prx` is produced. - `patched_libraries` passes (70 s). - `progress_report`, `progress_encoding`, `import_audit`, `conventions_function_bodies`, `test_registration`, `pr_overlap_exports`, `nid_database_cache` pass. - `python3 tools/check_conventions.py --base origin/main` passes. - `python3 tools/check_test_registration.py build`: 551 test executables, 0 built and not run. ### 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
github-actions[bot] commented 2026-10-10 15:24:45 +00:00 (Migrated from github.com)

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


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6099065251 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2796#issuecomment-6099065251). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T15:24:45Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

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