aboutsummaryrefslogtreecommitdiff
path: root/sound.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 17:09:58 +1000
committerquou <quou@disroot.org>2023-05-07 17:09:58 +1000
commit955f6ae56cdd3b20eabb44e7c9b931bdb17c2b3e (patch)
tree62f5dc92a675a5fdc48a0474d11d229cb5f2780d /sound.h
parent1867e71ac2870f904e0856fd3b093abed6e8a58b (diff)
Basic music and sound.
Diffstat (limited to 'sound.h')
-rw-r--r--sound.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sound.h b/sound.h
new file mode 100644
index 0000000..bde891b
--- /dev/null
+++ b/sound.h
@@ -0,0 +1,16 @@
+#ifndef sound_h
+#define sound_h
+
+typedef enum {
+ song_menu,
+ song_main,
+ song_win,
+ song_dead
+} Song;
+
+void init_sound();
+void sound_mix(unsigned char* stream, int len);
+void set_song(Song song);
+void play_beep(int pitch, int length);
+
+#endif