feat(libs): add the Voice and IME exports PPSA24191 needs to load #7852
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7852"
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 Lindamea1 on 2026-10-19T11:01:32Z.
What
Monster Hunter Wilds (PPSA24191) imports three functions that no library exports, so on
mainthe loader stops before the title runs:The names are from the pinned
aerolib.csvthattools/nid_names.pyuses, andcompute_nidgives back the same NIDs.sceVoicePausePort(x0slGBQW+wY) andsceVoiceResumePort(gAgN+HkiEzY) check that the library is initialized and the port exists, assceVoiceResetPortdoes, and return 0. VitaSDK'svoice.hdocuments that a paused port keeps its buffered data and keeps reporting its earlier state throughsceVoiceGetPortInfountil it resumes. RPCS3'scellVoicePausePortandcellVoiceResumePortmake the same two checks. Nothing here processes port data, so neither call changes anything else. The title passes a 32-bit port id. Right after connecting an input port to a voice output port withsceVoiceConnectIPortToOPort, it pauses that input port. Elsewhere it pauses and resumes a port again.sceImeSetConsecutiveClauseConversionEnabled(row9sfnYNx4) throws. Neither shadPS4 nor KytyPS5 implements it, and GitHub code search finds no other mention of the name. The title calls it with 1 just before each of its threesceImeOpencalls, and opens the panel only when it returns 0. The debt entry records this for whoever implements it.GuestVoicenow checks that both Voice calls throw in four cases: beforesceVoiceInit, for an unknown port, aftersceVoiceDeletePortand aftersceVoiceEnd. It also checks that a paused port reports the same port info. The assertions that already follow on the same ports check that the connection, volume and mute flag are kept.Tested
Gentoo Linux, kernel 7.2.8, GCC 16, Release,
BUILD_TESTING=ON. Tests onmainf72c7aacf, title runs onmain83bf557dc(the branch rebased cleanly; nothing in between touches these files).guest_voicepasses. Without the change it does not link, because the two Voice functions are undefined.tools/select_tests.pyas CI selects them: 239 passed, 0 failed. The VideoOut flip tests skip on this machine, as they do onmain.x86_64-w64-mingw32-g++ -fsyntax-only -Wall -Wextra. This is a syntax check, not a Windows build or run.tools/check_conventions.pypasses.tools/pr_overlap.py --branchreports no overlapping lines with other pull requests. It could not compareGuestVoice.cppwith #6044, which conflicts withmain. #6044 moves the file unchanged tocore/libs/tests/media/. Merged with this branch, it has the same 24 conflicting files as withmain, none of them this PR's, and the new assertions land in the moved file. #7566 and #7658 change neighbouring lines of the two debt files, so the new entries sit where they merge cleanly with both.--registry --module-dir PS5, run headless in gamescope on an RTX 5090 (driver 595.99.02):main: the loader stops atrow9sfnYNx4.tools/import_audit.pyreports 3 absent imports.0x555555554000, its own libc rejects its allocator's buffer, as #3043 describes on Windows. The log showssceKernelDebugRaiseException c1=-1610481644and thenc1=-1610481645, followed by a segfault. Relinked with--linux-fixed-base 0x400000or0x400000000, the title compiles its shaders, presents frames and checks its save data within 5 minutes. Every frame is still one flat dark grey.Not run on Windows, macOS or a console.
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-19T11:02:20Z.
Progress report (
f72c7aa→4faf57a)📉 System libraries: 82.5% (-0.01%, +2 implemented, +1 declared functions)
✅ 2 implemented
sceVoicePausePortsceVoiceResumePort🆕 1 declared as stubs
sceImeSetConsecutiveClauseConversionEnabledImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T11:09:50Z.
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.mdL11Some 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 fogydes on 2026-10-19T12:16:38Z.
Review: APPROVED
Verified locally on Windows 11 with WinLibs MinGW-w64 GCC 15.2.0, Release (
-DBUILD_TESTING=ON):guest_voice_testsbuilds cleanly with Ninja.ctest --test-dir build-libs -R "^guest_voice$" --output-on-failure:guest_voice: Passed (0.02s)sceVoicePausePortandsceVoiceResumePortvalidate library initialization and valid port ID handles, asserting invariant port configuration across pause/resume cycles.libSceImethrowing stub forsceImeSetConsecutiveClauseConversionEnabled(NIDrow9sfnYNx4) is documented with caller context indocs/dev/debt/libSceIme.md.GuestVoice.cpptotests/media/.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T02:48:19Z.
Checked the signatures against VitaSDK/RPCS3, the init/port checks against
sceVoiceResetPort, the throwing IME stub and its debt entry, and thatGuestVoicefails without the change (the two functions don't link); merged.