Skip to content

Decomp snd_voice - #191

Merged
roengstrom merged 6 commits into
mainfrom
sound-snd-voice
Oct 28, 2026
Merged

roengstrom merged 6 commits into
mainfrom
sound-snd-voice

Conversation

@roengstrom

Copy link
Copy Markdown
Owner

Just dumping all the decomps I have locally to get it into the codebase. Will focus on cleaning it up later

func_80014FFC writes all of a voice's SPU registers. func_800150A8 now takes the owning track's flags as a third argument, as its callers pass them, and the voice start and repeat addresses are unsigned.
func_800151C4, func_80015668 and func_80015AC8 step a track's slides and wave tables and work out its voice volume and pitch.
func_80015FE0 keys voices on for a set of tracks, and func_80016344 refreshes the voice table D_80073CB0 from the SPU envelopes. D_80073CB0 gets a placeholder struct.
func_800164D8 runs the voice update for the music and sound effect tracks, with func_80016478, func_80016A7C and func_80016C28. D_80074F10 and D_800772A4 are now shared through sound.h, and libspu.h gains the Psy-Q SpuSetNoiseClock prototype.
@decomp-dev

decomp-dev Bot commented Oct 28, 2026

Copy link
Copy Markdown

Report for SLUS_008.92 (829b3ed - 98b01fd)

📈 Matched code: 68.13% (+0.46%, +6868 bytes)

✅ 10 new matches
Unit Item Bytes Before After
src/snd_voice func_800164D8 +1348 0.00% 100.00%
src/snd_voice func_800151C4 +1188 0.00% 100.00%
src/snd_voice func_80015AC8 +1156 0.00% 100.00%
src/snd_voice func_80015668 +1120 0.00% 100.00%
src/snd_voice func_80015FE0 +672 0.00% 100.00%
src/snd_voice func_80016A7C +428 0.00% 100.00%
src/snd_voice func_80016C28 +396 0.00% 100.00%
src/snd_voice func_80016344 +308 0.00% 100.00%
src/snd_voice func_80014FFC +172 0.00% 100.00%
src/snd_voice func_80016478 +80 0.00% 100.00%

@dargor123 dargor123 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved (I saw a lot of >> operations, maybe they can be cleaned up)

@roengstrom
roengstrom merged commit fc8ad38 into main Oct 28, 2026
1 check passed
@roengstrom
roengstrom deleted the sound-snd-voice branch October 28, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants