fix(ngs2): resolve voice patches to rack handles #4777
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4777"
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 MarcZX10 on 2026-10-12T21:35:13Z.
What
Allow
sceNgs2VoiceControl's patch parameter to name a destination rack handle whendest_input_idis 0. The rack's first voice receives the patch. The reported Dead Cells call in issue #4334 passes a mastering rack handle asdest_handle; treating it only as a voice handle currently throwsinvalid argument.The regression creates a mastering rack and sampler, patches the sampler to the rack handle, checks that port info reports the rack's first voice as its destination, and verifies rendered PCM reaches the output. Racks with multiple voices and nonzero destination input ids are not established by the available evidence; nonzero input ids continue to throw.
Tested
ngs2_renderpassed (1/1).Voice.cppmade the new test fail withPatch: invalid argument.python3 tools/check_conventions.py --base upstream/mainpassed.git diff --checkpassed.Checklist
main; no open PR implements this rack-handle destination behaviorNotImplemented_nid_no_patchImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T03:55:17Z.
Windows test: head
41ea3e143merged onto currentmain495bf91a0(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j2: full build 0 errors; ctest with the filterngs2_core_render: ngs2_core_render passed (1 test(s), 0 failed);python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-13T18:48:02Z.
Dead Cells (PPSA15552) needs this on top of #4417: with #4417 alone it stops on
Patch: invalid argumentbecause it patches a sampler voice to a rack handle, and with this PR merged as well it gets past patching (details in https://github.com/boykopovar/AnyPS5/pull/4417#issuecomment-6152733807). The merge with #4417 conflicts inPatch; I kept both the rack-handle fallback and #4417'sCUSTOM_SAMPLERdestination check.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T20:13:10Z.
Rebased onto current
mainafter #4417 merged (head8b0da182a018). TheVoice.cppresolution preserves the rack-handle fallback and #4417’s rejection of both regular and custom-sampler destinations. The rebased commit author remains MarcZX100.Linux GCC 12.2 Release: built
ngs2_render_tests;ctest -R "^ngs2_render$"passed (1/1).tools/check_conventions.py --base upstream/mainandgit diff --checkpass. The hosted conventions check is rerunning now; Linux/Windows/relinker test jobs are skipped by the repository path filters for this change.