]> 4ch.mooo.com Git - 16.git/blobdiff - src/sountest.c
i want to test it before i mess with the variable pushing to gvar
[16.git] / src / sountest.c
index 94d2f25432c6f8c0d3827153b7c55033b452f4ca..47848ceb5f953fd6a65451bfb09eaf534c9996a7 100755 (executable)
@@ -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 (&gvar, "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