24 #ifndef __GFX_SOUND_H__
25 #define __GFX_SOUND_H__
39 #define GEN_ENUM(ENUM) ENUM,
44 #define FOR_EACH_SAMPLE(SAMPLE) \
gfxSound_samples_e
Enum containing the currently loaded wav samples.
Definition: gfx_sound.h:74
void gfxSoundPlaySample(unsigned char index)
Plays a wav sample.
Definition: gfx_sound.c:140
void gfxSoundExit(void)
Deinitializes the SDL2 Mixer library.
Definition: gfx_sound.c:54
int gfxSoundLoadUserSample(const char *filepath)
Loads a .wav sample from disk.
Definition: gfx_sound.c:149
int gfxSoundPlayUserSample(const char *filename)
Plays a loaded waveform.
Definition: gfx_sound.c:195
#define FOR_EACH_SAMPLE(SAMPLE)
Definition: gfx_sound.h:44
#define GEN_ENUM(ENUM)
Definition: gfx_sound.h:39
int gfxSoundInit(char *bin_dir_str)
Initializes the SDL2 Mixer library and loads the wav samples specified in the gfxSound_samples_e.
Definition: gfx_sound.c:65