1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef AUDIO_H #define AUDIO_H #include "types.h" struct sound { u8 *data; u32 size; const char *name; i32 loop; }; #define max_sounds 8 extern struct sound sounds[max_sounds]; i32 get_sound(const char *name); #endif