aboutsummaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-08 10:04:27 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-08 10:04:27 +0100
commit87388f510f800aa4bc1bb78e35b488ea5636ce87 (patch)
tree8e3f4c35976fc3a26d1540471946fe9c213634d3 /src/sound.c
parenta04d006652bc7023ec0d5fa4a299789f1b69b790 (diff)
downloadgold-mine-run-87388f510f800aa4bc1bb78e35b488ea5636ce87.tar.gz
gold-mine-run-87388f510f800aa4bc1bb78e35b488ea5636ce87.zip
CLI and no sound option
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound.c b/src/sound.c
index f19b7ff..0a10ae4 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -35,11 +35,12 @@ static MODULE *music = NULL;
static uint8_t queue[MAX_QUEUE];
static uint8_t queue_top;
-uint8_t sound_init()
+uint8_t sound_init(uint8_t nosound)
{
MikMod_InitThreads();
- MikMod_RegisterDriver(&drv_sb);
+ if (!nosound)
+ MikMod_RegisterDriver(&drv_sb);
MikMod_RegisterDriver(&drv_nos);
MikMod_RegisterLoader(&load_it);