--- np2/sound/s98.c 2003/12/08 00:55:33 1.5 +++ np2/sound/s98.c 2005/02/07 14:46:12 1.10 @@ -4,6 +4,9 @@ // #include "compiler.h" + +#if defined(SUPPORT_S98) + #include "dosio.h" #include "pccore.h" #include "iocore.h" @@ -15,16 +18,16 @@ #define S98LOG_BUFSIZE (32 * 1024) typedef struct { - BYTE magic[3]; + UINT8 magic[3]; UINT8 formatversion; - BYTE timerinfo[4]; - BYTE timerinfo2[4]; - BYTE compressing[4]; - BYTE offset[4]; - BYTE dumpdata[4]; - BYTE looppoint[4]; - BYTE headerreserved[0x24]; - BYTE title[0x40]; + UINT8 timerinfo[4]; + UINT8 timerinfo2[4]; + UINT8 compressing[4]; + UINT8 offset[4]; + UINT8 dumpdata[4]; + UINT8 looppoint[4]; + UINT8 headerreserved[0x24]; + UINT8 title[0x40]; } S98HDR; static struct { @@ -32,7 +35,7 @@ static struct { UINT32 intcount; SINT32 clock; UINT p; - BYTE buf[S98LOG_BUFSIZE]; + UINT8 buf[S98LOG_BUFSIZE]; } s98log; @@ -117,7 +120,7 @@ BOOL S98_open(const char *filename) { } // 初期化 - s98log.clock = pc.realclock / 1000; + s98log.clock = pccore.realclock / 1000; s98log.p = 0; // ヘッダの保存 @@ -130,7 +133,7 @@ BOOL S98_open(const char *filename) { STOREINTELDWORD(hdr.offset, offsetof(S98HDR, title)); STOREINTELDWORD(hdr.dumpdata, sizeof(S98HDR)); for (i=0; i