Diff for /np2/sound/psggenc.c between versions 1.2 and 1.5

version 1.2, 2003/10/19 16:54:51 version 1.5, 2003/11/08 21:43:01
Line 45  void psggen_initialize(UINT rate) { Line 45  void psggen_initialize(UINT rate) {
         if (psggencfg.puchidec == 0) {          if (psggencfg.puchidec == 0) {
                 psggencfg.puchidec = 1;                  psggencfg.puchidec = 1;
         }          }
         psggencfg.base = (5000 * (1 << (32 - PSGFREQPADBIT - PSGADDEDBIT)))          if (rate) {
                   psggencfg.base = (5000 * (1 << (32 - PSGFREQPADBIT - PSGADDEDBIT)))
                                                                                                                         / (rate / 25);                                                                                                                          / (rate / 25);
           }
 }  }
   
 void psggen_setvol(UINT vol) {  void psggen_setvol(UINT vol) {
Line 111  void psggen_setreg(PSGGEN psg, BYTE reg, Line 113  void psggen_setreg(PSGGEN psg, BYTE reg,
                 case 7:                  case 7:
                         keydisp_psgmix(psg);                          keydisp_psgmix(psg);
                         psg->mixer = ~value;                          psg->mixer = ~value;
                           psg->puchicount = psggencfg.puchidec;
   //                      TRACEOUT(("psg %x 7 %d", (long)psg, value));
                         break;                          break;
   
                 case 8:                  case 8:
Line 125  void psggen_setreg(PSGGEN psg, BYTE reg, Line 129  void psggen_setreg(PSGGEN psg, BYTE reg,
                                 psg->tone[ch].pvol = ((BYTE *)&psg->reg) + reg;                                  psg->tone[ch].pvol = ((BYTE *)&psg->reg) + reg;
                         }                          }
                         psg->tone[ch].puchi = psggencfg.puchidec;                          psg->tone[ch].puchi = psggencfg.puchidec;
 //                      TRACEOUT(("%d", value));                          psg->puchicount = psggencfg.puchidec;
   //                      TRACEOUT(("psg %x %x %d", (long)psg, reg, value));
                         break;                          break;
   
                 case 11:                  case 11:

Removed from v.1.2  
changed lines
  Added in v.1.5


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