/[svn]/linuxsampler/trunk/src/engines/gig/EGDecay.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/EGDecay.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 318 by schoenebeck, Tue Apr 27 09:21:58 2004 UTC revision 319 by schoenebeck, Mon Dec 13 00:46:42 2004 UTC
# Line 35  namespace LinuxSampler { namespace gig { Line 35  namespace LinuxSampler { namespace gig {
35       *       *
36       * @param Samples - total number of sample points to be rendered in this       * @param Samples - total number of sample points to be rendered in this
37       *                  audio fragment cycle by the audio engine       *                  audio fragment cycle by the audio engine
38         * @returns true if there was something to process
39       */       */
40      void EGDecay::Process(uint Samples) {      bool EGDecay::Process(uint Samples) {
41          if (!DecayStepsLeft) return;          if (!DecayStepsLeft) return false;
42    
43          int iSample     = TriggerDelay;          int iSample     = TriggerDelay;
44          int to_process  = RTMath::Min(Samples - iSample, DecayStepsLeft);          int to_process  = RTMath::Min(Samples - iSample, DecayStepsLeft);
# Line 48  namespace LinuxSampler { namespace gig { Line 49  namespace LinuxSampler { namespace gig {
49              Level += DecayCoeff;              Level += DecayCoeff;
50          }          }
51          TriggerDelay = 0;          TriggerDelay = 0;
52    
53            return true;
54      }      }
55    
56      /**      /**

Legend:
Removed from v.318  
changed lines
  Added in v.319

  ViewVC Help
Powered by ViewVC