summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7e2844e..1766cd1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -37,6 +37,7 @@
#include "exit.h"
#include "tape.h"
#include "util.h"
+#include "audio.h"
/* ---------------------------------------- MACROS
@@ -87,6 +88,14 @@ int main(int argc, char *argv[])
GFXInit();
+ if (IConfig(CONF_SOUND))
+ {
+ if (!AUDIOInit())
+ {
+ fprintf(stderr, "warning: couldn't initialise audio\n");
+ }
+ }
+
SPECInit(z80);
white=GFXRGB(255,255,255);