Diff for /np2/sound/s98.c between versions 1.8 and 1.10

version 1.8, 2004/01/30 01:56:01 version 1.10, 2005/02/07 14:46:12
Line 18 Line 18
 #define S98LOG_BUFSIZE (32 * 1024)  #define S98LOG_BUFSIZE (32 * 1024)
   
 typedef struct {  typedef struct {
         BYTE    magic[3];          UINT8   magic[3];
         UINT8   formatversion;          UINT8   formatversion;
         BYTE    timerinfo[4];          UINT8   timerinfo[4];
         BYTE    timerinfo2[4];          UINT8   timerinfo2[4];
         BYTE    compressing[4];          UINT8   compressing[4];
         BYTE    offset[4];          UINT8   offset[4];
         BYTE    dumpdata[4];          UINT8   dumpdata[4];
         BYTE    looppoint[4];          UINT8   looppoint[4];
         BYTE    headerreserved[0x24];          UINT8   headerreserved[0x24];
         BYTE    title[0x40];          UINT8   title[0x40];
 } S98HDR;  } S98HDR;
   
 static struct {  static struct {
Line 35  static struct { Line 35  static struct {
         UINT32  intcount;          UINT32  intcount;
         SINT32  clock;          SINT32  clock;
         UINT    p;          UINT    p;
         BYTE    buf[S98LOG_BUFSIZE];          UINT8   buf[S98LOG_BUFSIZE];
 } s98log;  } s98log;
   
   
Line 133  BOOL S98_open(const char *filename) { Line 133  BOOL S98_open(const char *filename) {
         STOREINTELDWORD(hdr.offset, offsetof(S98HDR, title));          STOREINTELDWORD(hdr.offset, offsetof(S98HDR, title));
         STOREINTELDWORD(hdr.dumpdata, sizeof(S98HDR));          STOREINTELDWORD(hdr.dumpdata, sizeof(S98HDR));
         for (i=0; i<sizeof(hdr); i++) {          for (i=0; i<sizeof(hdr); i++) {
                 S98_putc(*(((BYTE *)&hdr) + i));                  S98_putc(*(((UINT8 *)&hdr) + i));
         }          }
   
 #if 1  #if 1
Line 143  BOOL S98_open(const char *filename) { Line 143  BOOL S98_open(const char *filename) {
                         S98_putc(NORMAL2608);                          S98_putc(NORMAL2608);
                         S98_putc((REG8)i);                          S98_putc((REG8)i);
                         S98_putc(opn.reg[i]);                          S98_putc(opn.reg[i]);
 #if 0  
                         S98_putc(EXTEND2608);                          S98_putc(EXTEND2608);
                         S98_putc((REG8)i);                          S98_putc((REG8)i);
                         S98_putc(opn.reg[i+0x100]);                          S98_putc(opn.reg[i+0x100]);
 #endif  
                 }                  }
         }          }
         // PSG          // PSG
         for (i=0x00; i<0x0e; i++) {          for (i=0x00; i<0x0e; i++) {
                 S98_putc(NORMAL2608);                  S98_putc(NORMAL2608);
                 S98_putc((REG8)i);                  S98_putc((REG8)i);
                 S98_putc(((BYTE *)&psg1.reg)[i]);                  S98_putc(((UINT8 *)&psg1.reg)[i]);
         }          }
 #endif  #endif
   

Removed from v.1.8  
changed lines
  Added in v.1.10


RetroPC.NET-CVS <cvs@retropc.net>