feat(libSceVoiceQoS): implement sceVoiceQoSEnd #999

Closed
Kikoarl wants to merge 1 commit from upstream-pr/999 into main
Kikoarl commented 2026-10-06 22:37:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-06T22:37:13Z.


What

Implement sceVoiceQoSEnd in libSceVoiceQoS:

  • Symmetric teardown counterpart to sceVoiceQoSInit from PR #730 (invoked by PPSA14632 and PPSA26344).
  • Resets the library's initialization state under mutex protection.
  • Throws std::runtime_error when called without being initialized, adhering to the exact-or-throw doctrine.
  • Documented in docs/dev/TechnicalDebt.md.
  • Added lifecycle unit test in core/libs/tests/GuestVoiceQoS.cpp.

Why

libSceVoiceQoS implemented sceVoiceQoSInit for games initializing voice QoS (PPSA14632, PPSA26344), but left sceVoiceQoSEnd throwing NotImplemented_nid_no_patch. Implementing sceVoiceQoSEnd completes the lifecycle of the library and allows clean shutdown and re-initialization.

How tested

Built and verified unit tests:

ninja libs guest_voice_qos_tests
ctest -R "guest_voice_qos" --output-on-failure

Passed guest_voice_qos and guest_voice_qos_app_type_0x10000000 (100% pass).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4765416750 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/999). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-06T22:37:13Z. --- ### What Implement `sceVoiceQoSEnd` in `libSceVoiceQoS`: - Symmetric teardown counterpart to `sceVoiceQoSInit` from PR #730 (invoked by PPSA14632 and PPSA26344). - Resets the library's initialization state under mutex protection. - Throws `std::runtime_error` when called without being initialized, adhering to the exact-or-throw doctrine. - Documented in `docs/dev/TechnicalDebt.md`. - Added lifecycle unit test in `core/libs/tests/GuestVoiceQoS.cpp`. ### Why `libSceVoiceQoS` implemented `sceVoiceQoSInit` for games initializing voice QoS (PPSA14632, PPSA26344), but left `sceVoiceQoSEnd` throwing `NotImplemented_nid_no_patch`. Implementing `sceVoiceQoSEnd` completes the lifecycle of the library and allows clean shutdown and re-initialization. ### How tested Built and verified unit tests: ```bash ninja libs guest_voice_qos_tests ctest -R "guest_voice_qos" --output-on-failure ``` Passed `guest_voice_qos` and `guest_voice_qos_app_type_0x10000000` (100% pass).
github-actions[bot] commented 2026-10-06 22:37:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T22:37:39Z.


Progress report (c1241ad → 117dd17)

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

✅ 1 implemented
Library Name
libSceVoiceQoS sceVoiceQoSEnd
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6026728480 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/999#issuecomment-6026728480). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T22:37:39Z. --- <!-- progress-report --> ### Progress report (c1241ad → 117dd17) 📈 **System libraries**: 87.28% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceVoiceQoS | `sceVoiceQoSEnd` | </details>
oneandonlydean commented 2026-10-07 00:02:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-07T00:02:34Z.


Thanks. The change itself is fine: sceVoiceQoSEnd throws when the library isn't initialized, and the test covers a second init after End.

Which title calls it on main? PPSA14632 and PPSA26344 call sceVoiceQoSInit, but End usually runs only when voice chat is torn down or at exit. The owner has asked us to merge only changes a title needs, so the title ID and the log line where it stops at this call would let me merge it. If it came from the import list, like #986 and #989, I'd close it for now.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6027796144 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/999#issuecomment-6027796144). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-07T00:02:34Z. --- Thanks. The change itself is fine: `sceVoiceQoSEnd` throws when the library isn't initialized, and the test covers a second init after End. Which title calls it on main? PPSA14632 and PPSA26344 call `sceVoiceQoSInit`, but End usually runs only when voice chat is torn down or at exit. The owner has asked us to merge only changes a title needs, so the title ID and the log line where it stops at this call would let me merge it. If it came from the import list, like #986 and #989, I'd close it for now.
Kikoarl commented 2026-10-07 04:12:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-07T04:12:12Z.


@oneandonlydean Thanks for reviewing the logic and unit tests.
Yes, this came from the import symbols associated with those titles rather than a captured execution log where a title halted on main. As with the other PRs, I'm completely aligned with closing this for now to keep the PR queue focused on active runtime bottlenecks. Feel free to close it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6030761412 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/999#issuecomment-6030761412). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-07T04:12:12Z. --- @oneandonlydean Thanks for reviewing the logic and unit tests. Yes, this came from the import symbols associated with those titles rather than a captured execution log where a title halted on `main`. As with the other PRs, I'm completely aligned with closing this for now to keep the PR queue focused on active runtime bottlenecks. Feel free to close it.

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