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

version 1.1.1.1, 2003/10/16 17:58:13 version 1.3, 2005/02/07 14:46:13
Line 462  static void tremolo_update(VOICE v) { Line 462  static void tremolo_update(VOICE v) {
         int             depth;          int             depth;
         int             cnt;          int             cnt;
         int             vol;          int             vol;
           int             pos;
   
         depth = v->sample->tremolo_depth << 8;          depth = v->sample->tremolo_depth << 8;
         if (v->tremolo.sweepstep) {          if (v->tremolo.sweepstep) {
Line 476  static void tremolo_update(VOICE v) { Line 477  static void tremolo_update(VOICE v) {
         }          }
         v->tremolo.count += v->tremolo.step;          v->tremolo.count += v->tremolo.step;
         cnt = v->tremolo.count >> TRERATE_SHIFT;          cnt = v->tremolo.count >> TRERATE_SHIFT;
         vol = envsin12q[cnt & ((1 << (SINENT_BIT - 2)) - 1)];          pos = cnt & ((1 << (SINENT_BIT - 2)) - 1);
         if (cnt & (1 << (SINENT_BIT - 2))) {          if (cnt & (1 << (SINENT_BIT - 2))) {
                 vol = (1 << 12) - vol;                  pos ^= ((1 << (SINENT_BIT - 2)) - 1);
         }          }
           vol = envsin12q[pos];
         if (cnt & (1 << (SINENT_BIT - 1))) {          if (cnt & (1 << (SINENT_BIT - 1))) {
                 vol = 0 - vol;                  vol = 0 - vol;
         }          }
Line 812  static const RESPROC resproc[] = { Line 814  static const RESPROC resproc[] = {
 #endif  #endif
 };  };
   
 void voice_setphase(VOICE v, BYTE phase) {  void voice_setphase(VOICE v, UINT8 phase) {
   
         int             proc;          int             proc;
         int             mode;          int             mode;

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


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