Open Watcom Linker Version 1.9
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
-Created on: 15/09/11 15:04:17
+Created on: 15/09/11 22:58:16
Executable Image: exmmtest.exe
creating a DOS executable
DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ)
DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
-16LIBOBJS = bakapee.$(OBJ) 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ) timer.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) vgmSnd.$(OBJ)
+16LIBOBJS = bakapee.$(OBJ) 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ) timer.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) vgmSnd.$(OBJ) 16_snd.$(OBJ)
+#3812intf.$(OBJ)
GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ)
-TESTEXEC = exmmtest.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe tsthimem.exe inputest.exe scroll.exe
-#++++vgmtest.exe
+TESTEXEC = exmmtest.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe tsthimem.exe inputest.exe scroll.exe vgmtest.exe
#testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe
EXEC = 16.exe bakapi.exe $(TESTEXEC)
16_hc.$(OBJ): $(SRCLIB)16_hc.h $(SRCLIB)16_hc.c
wcl $(FLAGS) -c $(SRCLIB)16_hc.c
+16_snd.$(OBJ): $(SRCLIB)16_snd.h $(SRCLIB)16_snd.c
+ wcl $(FLAGS) -c $(SRCLIB)16_snd.c
+
jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c
wcl $(FLAGS) -c $(JSMNLIB)jsmn.c
vgmSnd.$(OBJ): $(VGMSNDLIB)vgmSnd.h $(VGMSNDLIB)vgmSnd.c
wcl $(FLAGS) -c $(VGMSNDLIB)vgmSnd.c
+#3812intf.$(OBJ): $(VGMSNDLIB)3812intf.h $(VGMSNDLIB)3812intf.c
+# wcl $(FLAGS) -c $(VGMSNDLIB)3812intf.c
+
#farjsmn.$(OBJ): $(JSMNLIB)farjsmn.h $(JSMNLIB)farjsmn.c
# wcl $(FLAGS) $(MFLAGS) -c $(JSMNLIB)farjsmn.c
Open Watcom Linker Version 1.9
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
-Created on: 15/09/11 15:04:18
+Created on: 15/09/11 22:58:16
Executable Image: scroll.exe
creating a DOS executable
Stack size: 8000 (32768.)
Memory size: 000164b0 (91312.)
Entry point address: 0000:5fe4
-Link time: 00:00.02
+Link time: 00:00.01
*\r
******************************************************************************/\r
#include <stddef.h>\r
-#include "mamedef.h"\r
-#include "3812intf.h"\r
-#include "fmopl.h"\r
+//#include "src/lib/vgmsnd/mamedef.h"\r
+#include "src/lib/vgmsnd/3812intf.h"\r
+//#include "fmopl.h"\r
\r
\r
typedef struct _ym3812_state ym3812_state;\r
{\r
ym3812_state *info;\r
int rate;\r
- \r
+\r
if (ChipID >= MAX_CHIPS)\r
return 0;\r
- \r
+\r
info = &YM3812Data[ChipID];\r
//rate = clock /72;\r
rate = CHIP_SAMPLE_RATE;\r
\r
\r
// Functions that must be supplied by external library:\r
-//extern void OPL2_Write(UINT8 reg, UINT8 data);\r
-//extern UINT8 OPL2_ReadStatus(void);\r
+extern void OPL2_Write(UINT8 reg, UINT8 data);\r
+extern UINT8 OPL2_ReadStatus(void);\r
\r
\r
#ifdef __cplusplus\r
*/\r
\r
#include "src/lib/vgmsnd/vgmSnd.h"\r
-#include "src/lib/vgmsnd/3812intf.h"\r
+#include "src/lib/16_snd.h"\r
+#include "src/lib/16_in.h"\r
\r
-//#define VGM_SLOTS 4\r
+void OPL2_Write(UINT8 reg, UINT8 data);\r
+UINT8 OPL2_ReadStatus(void);\r
\r
-//VGM_FILE vgmFiles[VGM_SLOTS];\r
+void OPL2_Write(UINT8 reg, UINT8 data)\r
+{\r
+ //ym3812_w(0, 0, reg);\r
+ //ym3812_w(0, 1, data);\r
+ opl2out(reg, data);\r
+ return;\r
+}\r
+\r
+UINT8 OPL2_ReadStatus(void)\r
+{\r
+ return 0;\r
+ //return ym3812_r(0, 0);\r
+}\r
\r
-void main()\r
+void\r
+main(int argc, char *argv[])\r
{\r
global_game_variables_t gvar;\r
+ VGM_FILE pee;\r
+ player_t player[MaxPlayers];\r
+\r
InitEngine();\r
+ OpenVGMFile("data\0.vgm", &pee);\r
+ IN_Startup();\r
+ IN_Default(0,&player,ctrl_Joystick);\r
+ PlayMusic(&pee);\r
+ while(!IN_KeyDown(sc_Escape))\r
+ {\r
+ IN_ReadControl(0,&player);\r
+ UpdateSoundEngine();\r
+ }\r
+ StopMusic();\r
/*VGM_FILE* tempVgmFile;\r
UINT8 vgmChn;\r
UINT8 vgmId;\r
PlayMusic(tempVgmFile);\r
else\r
PlaySFX(tempVgmFile, vgmChn);*/\r
+ FreeVGMFile(&pee);\r
DeinitEngine();\r
+ IN_Shutdown();\r
}\r