feat(libSceVoiceQoS): implement packet and local endpoint attribute functions to unblock Aliens: Fireteam Elite #7727
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7727"
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 leorossi2005 on 2026-10-19T03:16:34Z.
What
Implements
sceVoiceQoSGetLocalEndpointAttribute,sceVoiceQoSReadPacket, andsceVoiceQoSWritePacketinlibSceVoiceQoS.Signatures, register conventions, buffer structures, and return handling were reconstructed via x86_64 binary disassembly of Aliens: Fireteam Elite (PPSA03393,
eboot.bin):sceVoiceQoSGetLocalEndpointAttribute(NIDeZu2RP0Ma3w, call site0x76D132):SetLocalEndpointAttribute; if unset, zeroes the destination buffer and returns 0.sceVoiceQoSReadPacket(NIDPWokFqab5q4, call site0x76D16E):Verified by the caller's internal logging format string:
log"sceVoiceQoSReadPacket() failed for connection id %d. Error code %#x"*size = 0when no voice packets are queued in the receive buffer, allowing games to exit the polling loop cleanly without triggering timeout or logout cycles.sceVoiceQoSWritePacket(NIDSpxLratrO1Q, call site0x76CECB):Verified by the caller's internal logging format string:
log"sceVoiceQoSWritePacket() failed. Error code: %#x"Other changes:
core/libs/tests/GuestVoiceQoS.cpp.docs/dev/debt/libSceVoiceQoS.md.Tested
ctest -R guest_voice_qos(all tests passed).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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T03:17:22Z.
Progress report (
8075b6a→2b64ff2)📈 System libraries: 79.89% (+0.06%, +3 implemented functions)
✅ 3 implemented
sceVoiceQoSGetLocalEndpointAttributesceVoiceQoSReadPacketsceVoiceQoSWritePacketImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T03:28:50Z.
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.
core/libs/tests/GuestVoiceQoS.cppImported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-19T05:31:15Z.
Review: COMMENTED
Linux run of
7fdb261e6, since the description only lists Windows.Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release,
BUILD_TESTING=ON, full build. Head7fdb261e6merged ontomain72a3d9f2a.guest_voice_qos,guest_voice_qos_app_type_0x10000000andpatched_librariespass, and the non-GPU suite is 761/761, same asmain.GuestVoiceQoS.cpponmain(library unchanged): both voice tests abort withsceVoiceQoSGetLocalEndpointAttribute not implemented, so the test covers the change.One thing on the packet calls.
sceVoiceQoSReadPacketalways reports 0 bytes andsceVoiceQoSWritePacketdrops the buffer and returns 0, so both now succeed without doing their job. That is what CONTRIBUTING.md calls a silent stub. It allows one only when it unblocks a title and only affects the UI, and asks for it under### Silent stubsin the library's debt file. Here it is described inside thesceVoiceQoSInitentry under Unknown function info, and voice packets are not UI. Either keep the two packet calls throwing, or move that description to a Silent stubs entry so the maintainers can decide. Also,WritePacketleaves*sizeuntouched. If that argument is in/out (bytes accepted), a caller could read it as 0 bytes written and retry. The Aliens call sites in the description may show which.Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by leorossi2005 on 2026-10-19T06:02:56Z.
@jotitadev Thanks for testing this on Linux and confirming test coverage!
Regarding the packet calls:
sceVoiceQoSReadPacketandsceVoiceQoSWritePacketinto their own dedicated entries under### Silent stubsindocs/dev/debt/libSceVoiceQoS.md, explaining why network voice streaming is stubbed out for titles requiring them on boot.WritePacketand*size: looking at the call site in Aliens: Fireteam Elite (0x76CE90-0x76CF10),*sizeis indeed in/out and the title explicitly verifies that all bytes were accepted:Before the call, the title initializes
[rbp - 0x24]with the packet length. On return, it checkscmp edx, ecxto ensure*sizeequals the requested length. Leaving*sizeuntouched (treating all input bytes as accepted) satisfies this check and allows the game to proceed.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T15:50:47Z.
Checked the new exports against the Aliens: Fireteam Elite call sites quoted in the description, the "Silent stubs" entries in the library's technical debt, and the guest test (it aborts on
mainwithnot implemented, as @jotitadev confirmed on Linux); merged.