summaryrefslogtreecommitdiff
path: root/in_practice/breakout/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'in_practice/breakout/audio.h')
-rw-r--r--in_practice/breakout/audio.h18
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