mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
An index at or beyond the rack's voice count returned through APS5_INVALID_ARG_EX, which throws and ends the process. Heretic + Hexen (PPSA26525) creates a one-voice reverb rack, takes voice 0 and asks for voice 1 at start-up, so it stopped at 1.5 s on "sceNgs2RackGetVoiceHandle: invalid argument". Return 0x804A8305 and leave the output handle untouched, after the existing null-output and rack-handle checks. The value follows prosper's analysis of libSceNgs2.native.sprx; shadPS4 lists 0x804A0302 for the PS4 library. Neither is a PS5 measurement, recorded in the technical debt. ngs2_voiceindex creates one-voice sampler, submixer, mastering and reverb racks and a default sampler rack, and checks the error, the untouched output, the null-output and invalid-rack codes and that the last valid index still resolves afterwards. It aborts on main's library with the throw above and passes with this change.