zladx/LADX-Disassembly

Document the sound effects generation

kemenaran opened this issue · 2 comments

Sounds effects (i.e. jingles, waveform-based sfx and noise-based sfx) are generated in https://github.com/zladx/LADX-Disassembly/blob/master/src/code/audio/sfx.asm.

The format seems pretty straightforward; probably no op-codes are involved. Still, the code needs documentation, and at least labeling of the different sound effects.

There are entries missing for a few IDs in hJingle and hNoiseSfx.
Shall I take a look if there are any missing sounds?

The system for sounds is similar to the system for music tracks. There's an address where you write an ID to play a track/sound, and then that ID gets copied to other addresses and the PlayMusicTrack address gets emptied.

Sure, if you can document the missing sounds and jingles, that'd be great.