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

version 1.6, 2003/11/14 05:26:53 version 1.7, 2003/12/24 14:01:56
Line 15  void SOUNDCALL psggen_getpcm(PSGGEN psg, Line 15  void SOUNDCALL psggen_getpcm(PSGGEN psg,
         PSGTONE *tone;          PSGTONE *tone;
         PSGTONE *toneterm;          PSGTONE *toneterm;
         SINT32  samp;          SINT32  samp;
         UINT    psgvol;  //      UINT    psgvol;
         SINT32  vol;          SINT32  vol;
         UINT    i;          UINT    i;
         UINT    noise;          UINT    noise;
Line 50  void SOUNDCALL psggen_getpcm(PSGGEN psg, Line 50  void SOUNDCALL psggen_getpcm(PSGGEN psg,
                                         psg->envcnt = psg->envmax;                                          psg->envcnt = psg->envmax;
                                         psg->envvol = (psg->envvolcnt ^ psg->envmode) & 0x0f;                                          psg->envvol = (psg->envvolcnt ^ psg->envmode) & 0x0f;
                                 }                                  }
                                   psg->evol = psggencfg.volume[psg->envvol];
                         }                          }
                 }                  }
                 mixer = psg->mixer;                  mixer = psg->mixer;
Line 69  void SOUNDCALL psggen_getpcm(PSGGEN psg, Line 70  void SOUNDCALL psggen_getpcm(PSGGEN psg,
                 tone = psg->tone;                  tone = psg->tone;
                 toneterm = tone + 3;                  toneterm = tone + 3;
                 do {                  do {
                         psgvol = (*(tone->pvol)) & 15;                          vol = *(tone->pvol);
                         if (psgvol) {                          if (vol) {
                                 samp = 0;                                  samp = 0;
                                 vol = psggencfg.volume[psgvol];  
                                 switch(mixer & 9) {                                  switch(mixer & 9) {
                                         case 0:                                                 // no mix                                          case 0:                                                 // no mix
                                                 if (tone->puchi) {                                                  if (tone->puchi) {

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


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