libSceNgs2: rack id 0x4001 custom sampler is rejected (Dead Cells); fix branch ready #3759
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T16:30:51Z.
libSceNgs2 rejects rack id 0x4001 (the custom sampler rack). Dead Cells (#3553) stops with
NGS2: rack id 0x4001 is not implemented.Fix branch ready:
screamm:feat/ngs2-custom-sampler-rack(1f23f238, one commit onmaina11c8f7f). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is. It has not been run with Dead Cells, so whether the title gets past this stop is untested; if it installs modules other than UserFx2 or callssceNgs2VoiceGetState, it will stop on those next (see below).src/libs/ngs2.cpp(16a7fe68) and shadPS4ngs2_custom.h(3a9f5726) agree on; voice params0x40010000(setup),0x40010001(waveform blocks) and0x40010005(pitch) behave as the plain sampler's0x1000xxxxparams where KytyPS5 treats them as identical; rendering plays the voice like a sampler voice (PCM and ATRAC9) and then runs the rack's UserFx2 modules the way the existing 0x4002 custom submixer rack does.0x40010004, the filter0x4001000a, other0x4001xxxxparams and more than one buffer (KytyPS5 does not implement them either); module ids other than UserFx2 and creation without an option struct (kept as the 0x4002 rack does); patching a voice into a custom sampler voice (the option has no input count);sceNgs2VoiceGetState(KytyPS5 and shadPS4 disagree on the state layout). Unknown rack ids keep the existing throw. Recorded in TechnicalDebt.Ngs2Custom.cppcovers rack creation and info, setup/blocks/pitch, three renders with exact output and the module process flags, voice end, every throw case, a wrong option size, zero voices, too many ports, a bad module buffer id and module cleanup on destroy.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs: all eightngs2_*tests 3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"532/536, the failures being the knownwindows_exceptions(#3411, fixed by #3415),guest_kernel_sys(#3510),guest_filesystem(#3518) and theagc_driverflake (#3171);tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T06:17:47Z.
Closing as a duplicate of #3553: same stop,
NGS2: rack id 0x4001 is not implemented(PPSA15552). This branch is carried in #4254.