Repository navigation
feat(ngs2): accept an empty waveform block list before voice setup - #5785
Closed
p3n1cillin wants to merge 1 commit into
Closed
p3n1cillin wants to merge 1 commit into
p3n1cillin wants to merge 1 commit into
Conversation
Void Terrarium (PPSA03061) adds zero waveform blocks with flags 0 to a sampler voice it has not set up. KytyPS5 adds nothing in that case and only records whether the voice still accepts blocks, so do the same instead of rejecting the voice for having no channels. Blocks or appended stream data before setup are still rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closing as a duplicate of #5660, which makes the same |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Void Terrarium (PPSA03061) stops a few seconds after its title screen, once a menu choice starts a new scene:
A local log of the failing call showed:
The title sends
SCE_NGS2_SAMPLER_VOICE_PARAM_ADD_WAVEFORM_BLOCKSwith zero blocks and flags 0 to a sampler voice that has no waveform format set up.AddWaveformBlocksrejected any voice without channels, even when there was nothing to add.KytyPS5's
AddWaveformBlocks, which this library already cites for the sampler, handles this case without any check on the voice's format:accepts_blocksfrom theCONTINUEflag and returns OK.So now:
Tested
Void Terrarium on Windows 11 (MinGW GCC 15, Release), on
mainwith feat(ces): implement sceCesUcsProfileInitSJis1997Cp932 #5153, feat(libSceCesCs): build libSceCesCs-module from the libSceCesCs source #5425, feat(libSceNgs2): support custom rack module id 0x1d (UserFx) and legacy callback dispatch #5140 and feat(libSceAgc): ignore address argument on non-sample-dump events in sceAgcDcbEventWrite #5219, which it needs to get this far. I drove it with key presses (Enter = Cross) through its title screen, without any display.New test:
ngs2_render'sTestEmptyBlocksBeforeSetupcovers a sampler voice that has never been set up:APPEND, are still rejected;CONTINUE, then one with flags 0, succeed;With
main'sVoice.cppthe test aborts on the first empty add. All 10 NGS2 tests pass on Windows.python tools/check_conventions.py --base origin/mainpasses.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