aboutsummaryrefslogtreecommitdiff
path: root/src/sound.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-02 21:31:19 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-02 21:31:19 +0100
commita88810c8a70c8e3a7533a266774ab61a84a9adf4 (patch)
tree9ec78cd5e20f06a6cbcbd0251e215f2ecaae71c4 /src/sound.h
parent6e03fe85b19bc533888a4689572aab0ccf68edc4 (diff)
downloadgold-mine-run-a88810c8a70c8e3a7533a266774ab61a84a9adf4.tar.gz
gold-mine-run-a88810c8a70c8e3a7533a266774ab61a84a9adf4.zip
Add sound support
Diffstat (limited to 'src/sound.h')
-rw-r--r--src/sound.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/sound.h b/src/sound.h
new file mode 100644
index 0000000..506531b
--- /dev/null
+++ b/src/sound.h
@@ -0,0 +1,24 @@
+#ifndef _SOUND_H
+#define _SOUND_H
+
+enum {
+ EFX_GOLD = 0,
+ EFX_JUMP,
+ EFX_PICKUP,
+ EFX_WARP,
+ EFX_TIME,
+ EFX_HIT,
+ EFX_DEATH,
+};
+
+uint8_t sound_init();
+void sound_free();
+void sound_update();
+
+void sound_music_pattern(uint16_t pat);
+void sound_play_efx(uint8_t efxno);
+
+void sound_mute();
+void sound_unmute();
+
+#endif /* _SOUND_H */