feat(libSceVoice): implement sceVoiceResetPort and sceVoiceWriteToIPort #4302
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4302"
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 utkuhalis on 2026-10-12T05:18:07Z.
What
sceVoiceResetPort(uint32_t port_id)checks that the library is initialized and that the port exists, then returns 0. An uninitialized library or an unknown port throws, assceVoiceDeletePortdoes. Ports here buffer nothing and are alwaysREADY, so there is nothing to clear; volume, mute flag, bit rate and connections stay as they are.udAxvCePkUsis listed by ps5rs.cellVoiceResetPortalso only validates the port.sceVoiceWriteToIPortaccepts data written to a PCM or voice input port and drops it: nothing reaches a host output, sosceVoiceReadFromOPortstill reports no data. The size is left as given. A null data or size pointer is an invalid argument; writing to a port that is not a PCM or voice input port throws.Both assumptions are recorded in
docs/dev/TechnicalDebt.md(the write path under silent stubs), andsceVoiceResetPortis removed from the list of PPSA23566 imports without a signature.The new
guest_voicetest (registered in a newlibSceVoice/CMakeLists.txt, following the other libraries) covers reset before and after init, unknown and deleted ports, settings surviving a reset, and a PCM write followed by an empty read from the connected output port.Tested
check_conventions.py --base upstream/mainpasses;Export.cppandGuestVoice.cpppassclang++ -std=gnu++20 -fsyntax-only; the test, compiled on the host together withlibSceVoice/Export.cpp(a small shim standing in forNotImplemented_nid_no_patch), exits 0.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Overlap
The overlap check lists #3747, #3795, #4089 and #4165 for neighbouring lines in docs/dev/TechnicalDebt.md only. None of them implements sceVoiceResetPort or sceVoiceWriteToIPort, and they share no exports or new files with this PR. Whichever lands first, I will rebase the other side's TechnicalDebt lines.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T05:18:28Z.
Progress report (
e013f8c→99e367b)📈 System libraries: 86.61% (+0.06%, +2 implemented functions)
✅ 2 implemented
sceVoiceResetPortsceVoiceWriteToIPortImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T05:27:03Z.
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/TechnicalDebt.mdL379-380docs/dev/TechnicalDebt.mdL379-380docs/dev/TechnicalDebt.mdL49docs/dev/TechnicalDebt.mdL103-104docs/dev/TechnicalDebt.mdL49Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T08:29:20Z.
Closing: PPSA23566 imports
sceVoiceResetPortbut no run stops in it or insceVoiceWriteToIPort, and the write would become a silent drop. Reopen with the log line when a title reaches one.Pull request closed