aboutsummaryrefslogtreecommitdiff
path: root/src/sound.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-03 21:40:42 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-03 21:40:42 +0100
commit4ef8cf8b3d9ad5235aa858a68f70a8aaf2b356da (patch)
tree5e84fc575df54a29097c9356ccc2e39988990dfd /src/sound.h
parenta225a6cf64b4c011fea851acb7dd424a1e957655 (diff)
downloadgold-mine-run-4ef8cf8b3d9ad5235aa858a68f70a8aaf2b356da.tar.gz
gold-mine-run-4ef8cf8b3d9ad5235aa858a68f70a8aaf2b356da.zip
Sound queue
This is to queue sounds and play them when we update the screen, so the sounds are synced with the action. It is required because the MikMod_Update function updates on the clock int, and is not synced with the VGA's vsync.
Diffstat (limited to 'src/sound.h')
-rw-r--r--src/sound.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sound.h b/src/sound.h
index 506531b..b51a8ba 100644
--- a/src/sound.h
+++ b/src/sound.h
@@ -18,6 +18,9 @@ void sound_update();
void sound_music_pattern(uint16_t pat);
void sound_play_efx(uint8_t efxno);
+void sound_queue_efx(uint8_t efxno);
+void sound_play_queue();
+
void sound_mute();
void sound_unmute();