feat(libSceVoice): implement sceVoiceEnableChat and sceVoiceDisableChat #6342

Merged
pushkarreddyy merged 1 commit from upstream-pr/6342 into main 2026-10-18 23:25:54 +00:00
pushkarreddyy commented 2026-10-15 12:25:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-15T12:25:43Z.


What

Implements sceVoiceEnableChat and sceVoiceDisableChat in libSceVoice.

  • Sibling follow-up to #5817 (sceVoiceResetPort, commit ea80fe17f).
  • Following SharpProspero (AudioOut2.cs L460) and the sceAudioOut2EnableChat / sceAudioOut2DisableChat model, these calls record chat audio state on the initialized library and return 0.
  • Calling either before sceVoiceInit or after sceVoiceEnd throws std::logic_error ("library not initialized").
  • Extends GuestVoice.cpp with unit tests checking initialization checks and successful enable/disable state transitions.
  • Documents technical debt in docs/dev/debt/libSceVoice.md.

Target context: EA SPORTS UFC 6 (PPSA23566, #5996) imports sceVoiceEnableChat and sceVoiceDisableChat.

Tested

  • Verified with python tools/check_conventions.py --base origin/main (0 errors).
  • Extended guest_voice test suite in core/libs/tests/GuestVoice.cpp.

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: PPSA23566 #5996
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4873205616 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-15T12:25:43Z. --- ### What Implements `sceVoiceEnableChat` and `sceVoiceDisableChat` in `libSceVoice`. - Sibling follow-up to #5817 (`sceVoiceResetPort`, commit `ea80fe17f`). - Following SharpProspero (`AudioOut2.cs` L460) and the `sceAudioOut2EnableChat` / `sceAudioOut2DisableChat` model, these calls record chat audio state on the initialized library and return 0. - Calling either before `sceVoiceInit` or after `sceVoiceEnd` throws `std::logic_error` ("library not initialized"). - Extends `GuestVoice.cpp` with unit tests checking initialization checks and successful enable/disable state transitions. - Documents technical debt in `docs/dev/debt/libSceVoice.md`. Target context: EA SPORTS UFC 6 (PPSA23566, #5996) imports `sceVoiceEnableChat` and `sceVoiceDisableChat`. ### Tested - Verified with `python tools/check_conventions.py --base origin/main` (0 errors). - Extended `guest_voice` test suite in `core/libs/tests/GuestVoice.cpp`. ### 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: PPSA23566 #5996 - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 12:26:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:26:21Z.


Progress report (9caecfd → d6300dd)

📈 System libraries: 90.37% (+0.05%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceVoice sceVoiceDisableChat
libSceVoice sceVoiceEnableChat
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6192007592 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342#issuecomment-6192007592). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:26:21Z. --- <!-- progress-report --> ### Progress report (9caecfd → d6300dd) 📈 **System libraries**: 90.37% (+0.05%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceVoice | `sceVoiceDisableChat` | | libSceVoice | `sceVoiceEnableChat` | </details>
github-actions[bot] commented 2026-10-15 12:30:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:30:07Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestVoice.cpp
PR 6447 core/libs/prx/libSceVoice/Export.cpp
docs/dev/debt/libSceVoice.md
PR 6461 core/libs/prx/libSceVoice/Export.cpp
core/libs/tests/GuestVoice.cpp
docs/dev/debt/libSceVoice.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6192076138 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342#issuecomment-6192076138). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:30:07Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestVoice.cpp` | | [PR 6447](https://www.github.com/boykopovar/AnyPS5/pull/6447) | `core/libs/prx/libSceVoice/Export.cpp`<br>`docs/dev/debt/libSceVoice.md` | | [PR 6461](https://www.github.com/boykopovar/AnyPS5/pull/6461) | `core/libs/prx/libSceVoice/Export.cpp`<br>`core/libs/tests/GuestVoice.cpp`<br>`docs/dev/debt/libSceVoice.md` |
pushkarreddyy commented 2026-10-15 13:33:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-15T13:33:37Z.


@oneandonlydean @adriadam10 Rebased clean on latest origin/main (8dc92ae29) with all checks green, implementing sceVoiceEnableChat and sceVoiceDisableChat matching the sceAudioOut2EnableChat model and pairing with #5817. Ready for review when convenient, thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6193332145 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342#issuecomment-6193332145). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-15T13:33:37Z. --- @oneandonlydean @adriadam10 Rebased clean on latest origin/main (8dc92ae29) with all checks green, implementing sceVoiceEnableChat and sceVoiceDisableChat matching the sceAudioOut2EnableChat model and pairing with #5817. Ready for review when convenient, thanks!
jotitadev commented 2026-10-15 19:12:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T19:12:42Z.

Review: COMMENTED


Linux run: head 76a6d761e merged onto main 44df21632 (clean merge).

Machine: Ubuntu 26.04, Intel i7-8700, GCC 15.2, full build, non-GPU tests (Release, BUILD_TESTING=ON).

  • Build: full build passes.
  • guest_voice: passes with the PR. With only the test change on main it aborts with "sceVoiceEnableChat not implemented", so the new checks cover the change.
  • Non-GPU suite (ctest -E "^agc"): no regressions; the only failures are file_writer_binary and file_writer_text, which fail on main on this machine too.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5538585276 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342#pullrequestreview-5538585276). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T19:12:42Z. **Review:** COMMENTED --- **Linux run: head `76a6d761e` merged onto `main` `44df21632` (clean merge).** Machine: Ubuntu 26.04, Intel i7-8700, GCC 15.2, full build, non-GPU tests (Release, `BUILD_TESTING=ON`). - **Build:** full build passes. - **`guest_voice`:** passes with the PR. With only the test change on `main` it aborts with "sceVoiceEnableChat not implemented", so the new checks cover the change. - Non-GPU suite (`ctest -E "^agc"`): no regressions; the only failures are `file_writer_binary` and `file_writer_text`, which fail on `main` on this machine too. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
pushkarreddyy commented 2026-10-16 15:05:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-16T15:05:28Z.


@oneandonlydean @adriadam10 Cleanly rebased on latest main (e0e3ced1e) with all CI checks passing green. Ready for review when convenient!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218390396 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342#issuecomment-6218390396). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-16T15:05:28Z. --- @oneandonlydean @adriadam10 Cleanly rebased on latest main (e0e3ced1e) with all CI checks passing green. Ready for review when convenient!
pushkarreddyy commented 2026-10-18 10:29:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-18T10:29:37Z.


@oneandonlydean Cleanly rebased onto latest origin/main (d6300dd1b). Pre-flight convention checks pass with 0 errors. Ready for review when convenient!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248767239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342#issuecomment-6248767239). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-10-18T10:29:37Z. --- @oneandonlydean Cleanly rebased onto latest `origin/main` (`d6300dd1b`). Pre-flight convention checks pass with 0 errors. Ready for review when convenient!
MarcZX10 commented 2026-10-18 19:24:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T19:24:48Z.


Review finding: open #6447 also changes sceVoiceEnableChat and sceVoiceDisableChat, but removes the stubs as unconditional success no-ops, while this PR tracks chatEnabled and fails if the library is uninitialized. The shared exports therefore have competing semantics, not just a nearby-line conflict. #6447 is a broad compatibility batch and states that exact console behavior is unverified; the focused tests here cover the selected initialized/uninitialized contract. Please coordinate with #6447’s author/maintainers so the same exports are not merged with conflicting behavior. I have not found evidence that the console requires the no-op or the initialization error.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254124803 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6342#issuecomment-6254124803). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T19:24:48Z. --- Review finding: open #6447 also changes `sceVoiceEnableChat` and `sceVoiceDisableChat`, but removes the stubs as unconditional success no-ops, while this PR tracks `chatEnabled` and fails if the library is uninitialized. The shared exports therefore have competing semantics, not just a nearby-line conflict. #6447 is a broad compatibility batch and states that exact console behavior is unverified; the focused tests here cover the selected initialized/uninitialized contract. Please coordinate with #6447’s author/maintainers so the same exports are not merged with conflicting behavior. I have not found evidence that the console requires the no-op or the initialization error.
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!6342
No description provided.