Diff for /np2/sound/fmboard.c between versions 1.15 and 1.16

version 1.15, 2007/07/20 14:39:11 version 1.16, 2007/11/03 00:00:21
Line 118  static void setfmregs(UINT8 *reg) { Line 118  static void setfmregs(UINT8 *reg) {
         FillMemory(reg + 0xb4, 0x04, 0xc0);          FillMemory(reg + 0xb4, 0x04, 0xc0);
 }  }
   
 void fmboard_reset(UINT32 type) {  void fmboard_reset(const NP2CFG *pConfig, UINT32 type) {
   
         UINT8   cross;          UINT8   cross;
   
Line 179  void fmboard_reset(UINT32 type) { Line 179  void fmboard_reset(UINT32 type) {
   
         switch(type) {          switch(type) {
                 case 0x01:                  case 0x01:
                         board14_reset();                          board14_reset(pConfig);
                         break;                          break;
   
                 case 0x02:                  case 0x02:
                         board26k_reset();                          board26k_reset(pConfig);
                         break;                          break;
   
                 case 0x04:                  case 0x04:
                         board86_reset();                          board86_reset(pConfig);
                         break;                          break;
   
                 case 0x06:                  case 0x06:
                         boardx2_reset();                          boardx2_reset(pConfig);
                         break;                          break;
   
                 case 0x08:                  case 0x08:
                         board118_reset();                          board118_reset(pConfig);
                         break;                          break;
   
                 case 0x14:                  case 0x14:
                         board86_reset();                          board86_reset(pConfig);
                         break;                          break;
   
                 case 0x20:                  case 0x20:
                         boardspb_reset();                          boardspb_reset(pConfig);
                         cross ^= np2cfg.spb_x;                          cross ^= pConfig->spb_x;
                         break;                          break;
   
                 case 0x40:                  case 0x40:
                         boardspr_reset();                          boardspr_reset(pConfig);
                         cross ^= np2cfg.spb_x;                          cross ^= pConfig->spb_x;
                         break;                          break;
   
                 case 0x80:                  case 0x80:
 //                      amd98_reset();  //                      amd98_reset(pConfig);
                         break;                          break;
   
 #if     defined(SUPPORT_PX)  #if     defined(SUPPORT_PX)
                 case 0x30:                  case 0x30:
                         boardpx1_reset();                          boardpx1_reset(pConfig);
                         break;                          break;
   
                 case 0x50:                  case 0x50:
                         boardpx2_reset();                          boardpx2_reset(pConfig);
                         break;                          break;
 #endif  // defined(SUPPORT_PX)  #endif  // defined(SUPPORT_PX)
   
Line 233  void fmboard_reset(UINT32 type) { Line 233  void fmboard_reset(UINT32 type) {
         usesound = type;          usesound = type;
         soundmng_setreverse(cross);          soundmng_setreverse(cross);
         keydisp_setfmboard(type);          keydisp_setfmboard(type);
         opngen_setVR(np2cfg.spb_vrc, np2cfg.spb_vrl);          opngen_setVR(pConfig->spb_vrc, pConfig->spb_vrl);
 }  }
   
 void fmboard_bind(void) {  void fmboard_bind(void) {

Removed from v.1.15  
changed lines
  Added in v.1.16


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