Go to the documentation of this file.
24 #ifndef __TUM_SOUND_H__
25 #define __TUM_SOUND_H__
40 #define GEN_ENUM(ENUM) ENUM,
45 #define FOR_EACH_SAMPLE(SAMPLE) \
int tumSoundPlayUserSample(const char *filename)
Plays a loaded waveform.
Definition: TUM_Sound.c:170
#define GEN_ENUM(ENUM)
Definition: TUM_Sound.h:40
#define FOR_EACH_SAMPLE(SAMPLE)
Definition: TUM_Sound.h:45
void tumSoundPlaySample(unsigned char index)
Plays a wav sample.
Definition: TUM_Sound.c:115
int tumSoundInit(char *bin_dir_str)
Initializes the SDL2 Mixer library and loads the wav samples specified in the tumSound_samples_e.
Definition: TUM_Sound.c:41
tumSound_samples_e
Enum containing the currently loaded wav samples.
Definition: TUM_Sound.h:75
void tumSoundExit(void)
Deinitializes the SDL2 Mixer library.
Definition: TUM_Sound.c:30
int tumSoundLoadUserSample(const char *filepath)
Loads a .wav sample from disk.
Definition: TUM_Sound.c:124