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

version 1.2, 2003/10/19 16:54:51 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) {

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


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