Repository navigation
fix(ngs2): accept common sampler voice state queries - #17145
Conversation
|
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.
|
|
I manually checked the four comparisons flagged by the overlap bot against this PR at
I found no dependency for the sampler change at these heads. |
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
coptergui-ops
left a comment
There was a problem hiding this comment.
Reviewed at current head. sceNgs2VoiceGetState now accepts the PS4 8-byte Ngs2VoiceState form for sampler voices (guarded by PS4_LIBRARY and exact size), fills a local Ngs2SamplerVoiceState through the same state logic as the full-size query, writes back only the common 8 bytes, and leaves surrounding bytes intact; shared test compares both sizes field-by-field. Debt records the Isaac Repentance (PPSA03311) polling site. Overlap verdicts: PR 1384 (stale base, conflicts with main) edits the same GetState function but a different rack case (REVERB) and adds the opposite full-size-only check - rebase it over the rewritten GetState or close after this merges; PRs 5548, 12107, 14212 share only other debt bullets, different entries, no shared lines. Conventions checker: no new findings from this diff (libkernel.md 1385-char warning is a pre-existing main entry, flagged identically across this wave).
What
In
libSceNgs2, accept an eight-byteNgs2VoiceStatebuffer for sampler voices. Copy the common fields from the same sampler state used by the full-size query. The shared test checks that the returned fields match and that the short query leaves the surrounding bytes intact.The Binding of Isaac: Repentance (PPSA03311) polls this form for streamed audio. The previous size check rejected the poll. The short query's behavior on PS4 hardware remains unmeasured and is recorded in technical debt.
Tested
990481cdbfwith only the regression test added. With the implementation,ngs2_core_render,ngs2_core_ps4_voice_stateandngs2_renderpassed. The three tests also passed after rebasing onto105c9e4d91.990481cdbffor both runtimes. Gameplay effects continued after the background music cut out on the baseline. The background music kept playing in Basement I with the fix.libSceNgs2.prxwas the only library swapped. Both runtimes preserved the same host-only kernel symbol during packaging.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.mdfiles or images added to the repository (attach them to this PR)