Diff for /np2/sound/psggenc.c between versions 1.4 and 1.7

version 1.4, 2003/10/22 14:13:25 version 1.7, 2003/12/04 13:54:29
Line 80  void psggen_setreg(PSGGEN psg, BYTE reg, Line 80  void psggen_setreg(PSGGEN psg, BYTE reg,
         UINT    ch;          UINT    ch;
   
         reg &= 15;          reg &= 15;
         ((BYTE *)&psg->reg)[reg] = value;  
         if (reg < 14) {          if (reg < 14) {
                 sound_sync();                  sound_sync();
         }          }
           ((BYTE *)&psg->reg)[reg] = value;
         switch(reg) {          switch(reg) {
                 case 0:                  case 0:
                 case 1:                  case 1:
Line 114  void psggen_setreg(PSGGEN psg, BYTE reg, Line 114  void psggen_setreg(PSGGEN psg, BYTE reg,
                         keydisp_psgmix(psg);                          keydisp_psgmix(psg);
                         psg->mixer = ~value;                          psg->mixer = ~value;
                         psg->puchicount = psggencfg.puchidec;                          psg->puchicount = psggencfg.puchidec;
   //                      TRACEOUT(("psg %x 7 %d", (long)psg, value));
                         break;                          break;
   
                 case 8:                  case 8:
Line 129  void psggen_setreg(PSGGEN psg, BYTE reg, Line 130  void psggen_setreg(PSGGEN psg, BYTE reg,
                         }                          }
                         psg->tone[ch].puchi = psggencfg.puchidec;                          psg->tone[ch].puchi = psggencfg.puchidec;
                         psg->puchicount = psggencfg.puchidec;                          psg->puchicount = psggencfg.puchidec;
 //                      TRACEOUT(("%d", value));  //                      TRACEOUT(("psg %x %x %d", (long)psg, reg, value));
                         break;                          break;
   
                 case 11:                  case 11:
Line 155  BYTE psggen_getreg(PSGGEN psg, BYTE reg) Line 156  BYTE psggen_getreg(PSGGEN psg, BYTE reg)
         return(((BYTE *)&psg->reg)[reg & 15]);          return(((BYTE *)&psg->reg)[reg & 15]);
 }  }
   
   void psggen_setpan(PSGGEN psg, UINT ch, BYTE pan) {
   
           if ((psg) && (ch < 3)) {
                   psg->tone[ch].pan = pan;
           }
   }
   

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


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