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.
sound instance to use
file path to the sound file in ogg, wav or mp3 format
- 0 or higher on success or -1 or lower on failure