sound¶
create_sound¶
destroy_sound¶
load_sound¶
-
int
load_sound
(struct sound *sound, const char *filepath)¶ Initialize an already allocated sound effect The sound file will be loaded and stored for use in the sound effect.
- Parameters
sound
-sound instance to use
filepath
-file path to the sound file in ogg, wav or mp3 format
- Return
- 0 or higher on success or -1 or lower on failure