Diff for /np2/sound/psggeng.c between versions 1.5 and 1.6

version 1.5, 2003/10/26 08:59:53 version 1.6, 2003/11/14 05:26:53
Line 68  void SOUNDCALL psggen_getpcm(PSGGEN psg, Line 68  void SOUNDCALL psggen_getpcm(PSGGEN psg,
                 }                  }
                 tone = psg->tone;                  tone = psg->tone;
                 toneterm = tone + 3;                  toneterm = tone + 3;
                 samp = 0;  
                 do {                  do {
                         psgvol = (*(tone->pvol)) & 15;                          psgvol = (*(tone->pvol)) & 15;
                         if (psgvol) {                          if (psgvol) {
                                   samp = 0;
                                 vol = psggencfg.volume[psgvol];                                  vol = psggencfg.volume[psgvol];
                                 switch(mixer & 9) {                                  switch(mixer & 9) {
                                         case 0:                                                 // no mix                                          case 0:                                                 // no mix
Line 110  void SOUNDCALL psggen_getpcm(PSGGEN psg, Line 110  void SOUNDCALL psggen_getpcm(PSGGEN psg,
                                                 }                                                  }
                                                 break;                                                  break;
                                 }                                  }
                                   if (!(tone->pan & 1)) {
                                           pcm[0] += samp;
                                   }
                                   if (!(tone->pan & 2)) {
                                           pcm[1] += samp;
                                   }
                         }                          }
                         mixer >>= 1;                          mixer >>= 1;
                 } while(++tone < toneterm);                  } while(++tone < toneterm);
                 pcm[0] += samp;  
                 pcm[1] += samp;  
                 pcm += 2;                  pcm += 2;
         } while(--count);          } while(--count);
 }  }

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


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