feat(libSceVoice): implement sceVoicePausePortAll and sceVoiceResumePortAll #8852
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8852"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by nikowolf123 on 2026-10-21T03:07:16Z.
What
sceVoicePausePortAllandsceVoiceResumePortAllthrewnot implemented. Both now take no arguments and return0x804E0801while the library is not initialized, and 0 otherwise. They change no state that any other call reports, likesceVoicePausePortandsceVoiceResumePortonmain.sceVoicePausePortAll/sceVoiceResumePortAllcheck only that the library is initialized and returnORBIS_VOICE_ERROR_NOT_INIT, which itsvoice_error.hdefines as0x804E0801. That is the codeVoiceErrorNotInitializedalready returns forsceVoiceStart,sceVoiceCreatePortandsceVoiceGetPortInfo, from prosper. RPCS3's PS3cellVoicePausePortAll/cellVoiceResumePortAllmake the same single check.sceVoicePausePortdebt entry gives.docs/dev/debt/libSceVoice.mdin a new entry next to thesceVoicePausePort, sceVoiceResumePortone. The two "unknown signature" lines are removed.sceVoiceSetMuteFlagAll. shadPS4 sets every port's flag, RPCS3 leaves the port flags alone, and VitaSDK describes a process-wide override of whatsceVoiceGetMuteFlagreports. With the sources disagreeing, it keeps throwing.libSceVoice(#8688, #6090, #6044) do not change these two functions.Tested
Linux: WSL2 Ubuntu 26.04, GCC 15.2.0 (Ubuntu 15.2.0-16ubuntu1), Release. I built the
libSceVoiceandguest_voice_teststargets and ranctest -R '^guest_voice$' --output-on-failure --timeout 120:guest_voicepasses (1/1) on this branch, which is based onmaincd700fe9e.guest_voicenow calls both functions:sceVoiceInitand again aftersceVoiceEnd, expecting0x804E0801;sceVoiceGetPortInfostill reports the same type, state and frame size while all ports are paused.I did not run the test against
main. There, both functions callNotImplemented_nid_no_patch, so the first new call would end the test with that exception.tools/check_conventions.py --base origin/mainpasses.tools/progress.py --module libSceVoice: done goes from 23 to 25, and the only newly done functions are these two.Windows: not built. No title was run.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T03:07:58Z.
Progress report (
a683688→cfb371d)📈 System libraries: 62.15% (+0.03%, +2 implemented functions)
✅ 2 implemented
sceVoicePausePortAllsceVoiceResumePortAllImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T03:22:13Z.
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.
main)docs/dev/debt/libSceVoice.mdL13, L21-25Some 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.
core/libs/tests/GuestVoice.cppImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T03:23:57Z.
Review: APPROVED
The implementation follows the available references: shadPS4 and RPCS3 both return the not-initialized error before success, and VitaSDK documents that pausing all ports retains buffered data and the reported state. The implementation matches the library's existing lock and initialization model, and the regression checks both pre-init behavior and idempotent calls with live ports. The PR reports a Linux guest_voice pass; hosted runtime jobs are skipped, so I did not independently reproduce that test here. I found no correctness issue in this diff.
Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-21T06:58:17Z.
Windows run of
cfb371d5e1merged ontomainec7eacc62d(3e7bd33b01, clean), the build the description lists as not done. Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 (ucrt-posix-seh r7), Release,BUILD_TESTING=ON.Built
libSceVoiceandguest_voice_testswith no errors or warnings;ctest --repeat until-fail:2onguest_voice: passes on both repeats. Not run: the negative control againstmain's library, a title.