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

version 1.6, 2003/11/14 05:26:53 version 1.8, 2005/02/07 14:46:12
Line 10  extern PSGGENCFG psggencfg; Line 10  extern PSGGENCFG psggencfg;
 void SOUNDCALL psggen_getpcm(PSGGEN psg, SINT32 *pcm, UINT count) {  void SOUNDCALL psggen_getpcm(PSGGEN psg, SINT32 *pcm, UINT count) {
   
         SINT32  noisevol;          SINT32  noisevol;
         BYTE    mixer;          UINT8   mixer;
         UINT    noisetbl = 0;          UINT    noisetbl = 0;
         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.8


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