diff options
author | pryazha <pryadeiniv@mail.ru> | 2025-08-26 10:55:18 +0500 |
---|---|---|
committer | pryazha <pryadeiniv@mail.ru> | 2025-08-26 10:55:18 +0500 |
commit | ad04490ef84d7565fbec0fa878a21694ad2d61f0 (patch) | |
tree | accfa142da0b3f99f957de6c030dc2c76639be53 /in_practice/breakout/audio.h | |
parent | 1f93c3ef62af6c71217f06491ca2b859d4065740 (diff) |
guess that's all
Diffstat (limited to 'in_practice/breakout/audio.h')
-rw-r--r-- | in_practice/breakout/audio.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/in_practice/breakout/audio.h b/in_practice/breakout/audio.h new file mode 100644 index 0000000..71b232f --- /dev/null +++ b/in_practice/breakout/audio.h @@ -0,0 +1,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 |