| version 1.5, 2004/02/03 08:24:40 | version 1.8, 2005/05/13 05:47:25 | 
| Line 1 | Line 1 | 
 |  |  | 
 |  | #if !defined(DISABLE_SOUND) | 
 |  |  | 
 | #include        "soundrom.h" | #include        "soundrom.h" | 
 | #include        "tms3631.h" | #include        "tms3631.h" | 
 | #include        "fmtimer.h" | #include        "fmtimer.h" | 
| Line 11 | Line 13 | 
 |  |  | 
 |  |  | 
 | typedef struct { | typedef struct { | 
| BYTE    reg[0x400]; | UINT    addr; | 
| BYTE    opnreg; | UINT    addr2; | 
| BYTE    extreg; | UINT8   data; | 
| BYTE    opn2reg; | UINT8   data2; | 
| BYTE    ext2reg; |  | 
| BYTE    adpcmmask; |  | 
| BYTE    channels; |  | 
| BYTE    extend; |  | 
| BYTE    padding; |  | 
 | UINT16  base; | UINT16  base; | 
 |  | UINT8   adpcmmask; | 
 |  | UINT8   channels; | 
 |  | UINT8   extend; | 
 |  | UINT8   _padding; | 
 |  | UINT8   reg[0x400]; | 
 | } OPN_T; | } OPN_T; | 
 |  |  | 
 | typedef struct { | typedef struct { | 
 | UINT16  port; | UINT16  port; | 
| BYTE    psg3reg; | UINT8   psg3reg; | 
| BYTE    rhythm; | UINT8   rhythm; | 
 | } AMD98; | } AMD98; | 
 |  |  | 
 | typedef struct { | typedef struct { | 
| BYTE    porta; | UINT8   porta; | 
| BYTE    portb; | UINT8   portb; | 
| BYTE    portc; | UINT8   portc; | 
| BYTE    mask; | UINT8   mask; | 
| BYTE    key[8]; | UINT8   key[8]; | 
 | int             sync; | int             sync; | 
 | int             ch; | int             ch; | 
 | } MUSICGEN; | } MUSICGEN; | 
| Line 53  extern _TMS3631 tms3631; | Line 55  extern _TMS3631 tms3631; | 
 | extern  _FMTIMER        fmtimer; | extern  _FMTIMER        fmtimer; | 
 | extern  _OPNGEN         opngen; | extern  _OPNGEN         opngen; | 
 | extern  OPNCH           opnch[OPNCH_MAX]; | extern  OPNCH           opnch[OPNCH_MAX]; | 
| extern  _PSGGEN         psg1; | extern  _PSGGEN         __psg[3]; | 
| extern  _PSGGEN         psg2; |  | 
| extern  _PSGGEN         psg3; |  | 
 | extern  _RHYTHM         rhythm; | extern  _RHYTHM         rhythm; | 
 | extern  _ADPCM          adpcm; | extern  _ADPCM          adpcm; | 
 | extern  _PCM86          pcm86; | extern  _PCM86          pcm86; | 
 | extern  _CS4231         cs4231; | extern  _CS4231         cs4231; | 
 |  |  | 
 |  | #define psg1    __psg[0] | 
 |  | #define psg2    __psg[1] | 
 |  | #define psg3    __psg[2] | 
 |  |  | 
 |  |  | 
 | REG8 fmboard_getjoy(PSGGEN psg); | REG8 fmboard_getjoy(PSGGEN psg); | 
 |  |  | 
| Line 77  void fmboard_rhyrestore(RHYTHM rhy, UINT | Line 81  void fmboard_rhyrestore(RHYTHM rhy, UINT | 
 | } | } | 
 | #endif | #endif | 
 |  |  | 
 |  | #else | 
 |  |  | 
 |  | #define fmboard_reset(t) | 
 |  | #define fmboard_bind() | 
 |  |  | 
 |  | #endif | 
 |  |  |