OSDN Git Service

updated copyleft and need to test and fix newer version of open watcom
[proj16/16.git] / src / sountest.c
index e734a8c..9c99e4a 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2022 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
@@ -23,7 +23,7 @@
 #include <stdio.h>\r
 \r
 #include "src/lib/16_in.h"\r
-#include "src/lib/16_sd.h"\r
+#include "src/lib/16_snd.h"\r
 //#include <hw/8254/8254.h>            /* 8254 timer */\r
 //#include <hw/adlib/adlib.h>\r
 \r
@@ -65,13 +65,14 @@ void main(int argc, char near *argv[])
 //0x36,                                /* feedback algorithm and strength 0xC0 */\r
 //};\r
 \r
-       IN_Startup(&gvar);\r
        //FMReset();\r
        //FMSetVoice(0, &testInst);\r
        if(!init_adlib())\r
        {\r
-               Quit ("Cannot init library");\r
+               printf("Cannot init library\n");\r
+               exit(-1);\r
        }\r
+       IN_Startup(&gvar);\r
 \r
        if (adlib_fm_voices > 9)\r
                printf("OPL3!\n");\r