--- np2/sound/fmboard.h 2004/01/23 15:05:05 1.4 +++ np2/sound/fmboard.h 2005/02/07 14:46:12 1.7 @@ -1,4 +1,6 @@ +#if !defined(DISABLE_SOUND) + #include "soundrom.h" #include "tms3631.h" #include "fmtimer.h" @@ -11,30 +13,30 @@ typedef struct { - BYTE reg[0x400]; - BYTE opnreg; - BYTE extreg; - BYTE opn2reg; - BYTE ext2reg; - BYTE adpcmmask; - BYTE channels; - BYTE extend; - BYTE padding; + UINT8 reg[0x400]; + UINT8 opnreg; + UINT8 extreg; + UINT8 opn2reg; + UINT8 ext2reg; + UINT8 adpcmmask; + UINT8 channels; + UINT8 extend; + UINT8 padding; UINT16 base; } OPN_T; typedef struct { UINT16 port; - BYTE psg3reg; - BYTE rhythm; + UINT8 psg3reg; + UINT8 rhythm; } AMD98; typedef struct { - BYTE porta; - BYTE portb; - BYTE portc; - BYTE mask; - BYTE key[8]; + UINT8 porta; + UINT8 portb; + UINT8 portc; + UINT8 mask; + UINT8 key[8]; int sync; int ch; } MUSICGEN; @@ -70,7 +72,17 @@ void fmboard_extenable(REG8 enable); void fmboard_reset(UINT32 type); void fmboard_bind(void); +void fmboard_fmrestore(REG8 chbase, UINT bank); +void fmboard_rhyrestore(RHYTHM rhy, UINT bank); + #ifdef __cplusplus } #endif +#else + +#define fmboard_reset(t) +#define fmboard_bind() + +#endif +