Diff for /np2/sound/psggenc.c between versions 1.1.1.1 and 1.3

version 1.1.1.1, 2003/10/16 17:58:05 version 1.3, 2003/10/20 06:36:33
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 125  void psggen_setreg(PSGGEN psg, BYTE reg, Line 127  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));
                         break;                          break;
   
                 case 11:                  case 11:

Removed from v.1.1.1.1  
changed lines
  Added in v.1.3


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