SNESMOD - Tracker-based Audio Engine. More...
#include <snes/types.h>Go to the source code of this file.
Macros | |
| #define | SNESMOD_PITCH_HIGH 12 |
| #define | SNESMOD_PITCH_LOW 4 |
| Standard pitch values (sample rate multiplier, 0-15 range) | |
| #define | SNESMOD_PITCH_NORMAL 8 |
Functions | |
| void | snesmodAllocateSoundRegion (u8 size) |
| Allocate SPC RAM for streaming buffer. | |
| void | snesmodFadeVolume (u8 targetVolume, u8 speed) |
| Fade module volume. | |
| void | snesmodFlush (void) |
| Wait for command queue to empty. | |
| u8 | snesmodGetPosition (void) |
| Get current module position. | |
| void | snesmodInit (void) |
| Initialize SNESMOD audio engine. | |
| u8 | snesmodLoadEffect (u16 sfxIndex) |
| Load a sound effect from the soundbank. | |
| void | snesmodLoadModule (u16 moduleId) |
| Load a module from the soundbank. | |
| void | snesmodPause (void) |
| Pause module playback. | |
| void | snesmodPlay (u8 startPosition) |
| Start module playback. | |
| u8 | snesmodPlayEffect (u16 effectId, u8 volume, u8 pan, u16 pitch) |
| Play a sound effect. | |
| void | snesmodProcess (void) |
| Process audio commands. | |
| void | snesmodResume (void) |
| Resume module playback. | |
| void | snesmodSetModuleVolume (u8 volume) |
| Set module volume. | |
| void | snesmodSetSoundbank (u8 bank) |
| Set the soundbank bank number. | |
| void | snesmodSetSoundTable (const u8 *table) |
| Set the streaming sound table. | |
| void | snesmodStop (void) |
| Stop module playback. | |
SNESMOD - Tracker-based Audio Engine.
A full-featured audio engine for SNES supporting:
Use smconv to create soundbanks from Impulse Tracker files:
This generates: