Functions | |
| u8 | snesmodLoadEffect (u16 sfxIndex) |
| Load a sound effect from the soundbank. | |
| u8 | snesmodPlayEffect (u16 effectId, u8 volume, u8 pan, u16 pitch) |
| Play a sound effect. | |
Load a sound effect from the soundbank.
Loads a single source/sample for use as a sound effect.
| sfxIndex | Source index in the soundbank |
Play a sound effect.
Triggers a sound effect, potentially interrupting module playback on one channel temporarily.
| effectId | Effect slot ID (from snesmodLoadEffect or soundbank.h) |
| volume | Volume level (0-127) |
| pan | Pan position (0=left, 128=center, 255=right) |
| pitch | Pitch value ($1000 = normal, $2000 = octave up) |