Diff for /np2/sound/fmboard.h between versions 1.4 and 1.10

version 1.4, 2004/01/23 15:05:05 version 1.10, 2007/11/03 00:00:21
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]
   
   #if defined(SUPPORT_PX)
   extern  OPN_T           opn2;
   extern  OPN_T           opn3;
   extern  _RHYTHM         rhythm2;
   extern  _RHYTHM         rhythm3;
   extern  _ADPCM          adpcm2;
   extern  _ADPCM          adpcm3;
   #endif  // defined(SUPPORT_PX)
   
 REG8 fmboard_getjoy(PSGGEN psg);  REG8 fmboard_getjoy(PSGGEN psg);
   
 void fmboard_extreg(void (*ext)(REG8 enable));  void fmboard_extreg(void (*ext)(REG8 enable));
 void fmboard_extenable(REG8 enable);  void fmboard_extenable(REG8 enable);
   
 void fmboard_reset(UINT32 type);  void fmboard_reset(const NP2CFG *pConfig, UINT32 type);
 void fmboard_bind(void);  void fmboard_bind(void);
   
   void fmboard_fmrestore(REG8 chbase, UINT bank);
   void fmboard_rhyrestore(RHYTHM rhy, UINT bank);
   
   #if defined(SUPPORT_PX)
   void fmboard_fmrestore2(OPN_T* pOpn, REG8 chbase, UINT bank);
   void fmboard_rhyrestore2(OPN_T* pOpn, RHYTHM rhy, UINT bank);
   #endif  // defined(SUPPORT_PX)
   
 #ifdef __cplusplus  #ifdef __cplusplus
 }  }
 #endif  #endif
   
   #else
   
   #define fmboard_reset(t)
   #define fmboard_bind()
   
   #endif
   

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


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