RedSound/RedCommand: 96.56% -> 99.46% - #17675
Open
SirEnkido wants to merge 7 commits into
Open
Conversation
…+ chained zero-assignments) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…, trackNo local, waveNo/count variable reuse) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…n waveNo/sequence-offset combines) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ssignments mirroring _SePlayStart, ADSR memset -1) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ntial volume scaling) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… variable for reverb index + track counter) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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 changed
src/RedSound/RedCommand.cpp(+ one enum ininclude/ffcc/RedSound/RedEntry.h), across_SePlayStart,_MusicPlayStart, and helpers. Seven commits, each an independent verified step:_SePlayStart: loop restructure with chained zero-assignments; if/else outlining with a block-scopetrackNo; explicit U16 high-shift (<< 8) combine form via a new named enum_MusicPlayStart: chained zero-assignments mirroring_SePlayStart; ADSRmemsettoDEFAULT_WORD(-1); in-place sequential volume scaling; a shared function-scopetrackNoreused for the reverb index and track counter (register-coloring lever consistent with the original compiler output)Evidence
main/RedSound/RedCommandfuzzy (report.json): 96.56% → 99.46% (+2.90)build/GCCP01/okpasses; sha1 matchesconfig/GCCP01/build.sha1)/* --INFO-- */headers preserved, no offset tricks, no fake symbols, no extern crutches, only the two intended files touchedNotes for review
_SePlayStart97.3%,SeBlockPlay98.6%,_MusicPlayStart99.7%,_EraseTime/MusicStop~99.9%) were each disassembled and confirmed to be register-allocation / scheduling artifacts (e.g. a phantomstmw r24save over a byte-identical body); left as-is rather than chased with hacks.RedMusicVolumeFromInputwas inlined into sequential mutate statements purely for scheduling match — flagged for transparency, not a rule violation.Produced by Claude agents following
AGENTS.md/WORK_SPLIT.md, operated by @SirEnkido. Every intermediate score in the commit messages was verified against report.json at commit time.🤖 Generated with Claude Code