maug
Quick and dirty C mini-augmentation library.
|
Abstraction layer header for sound on retro systems. More...
Topics | |
RetroSound State Flags | |
Flags indicating global state for the RETROSND_STATE::flags field. | |
Files | |
file | retrosnd.h |
Abstraction layer header for sound on retro systems. | |
Functions | |
MERROR_RETVAL | retrosnd_init (struct RETROFLAT_ARGS *args) |
Initialize retrosnd engine. | |
void | retrosnd_set_sf_bank (const char *filename_in) |
Set the name of the voice bank filename to use. | |
void | retrosnd_midi_set_voice (uint8_t channel, uint8_t voice) |
void | retrosnd_midi_set_control (uint8_t channel, uint8_t key, uint8_t val) |
void | retrosnd_midi_note_on (uint8_t channel, uint8_t pitch, uint8_t vel) |
void | retrosnd_midi_note_off (uint8_t channel, uint8_t pitch, uint8_t vel) |
MERROR_RETVAL | retrosnd_midi_play_smf (const char *filename) |
uint8_t | retrosnd_midi_is_playing_smf () |
void | retrosnd_shutdown () |
Abstraction layer header for sound on retro systems.
MERROR_RETVAL retrosnd_init | ( | struct RETROFLAT_ARGS * | args | ) |
Initialize retrosnd engine.
args | A pointer to the RETROSND_ARGS struct initialized by the calling program. |
The RETROSND_ARGS::snd_io_base field must be initialized with the address or other platform-specific indicator of the MIDI device to use.