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

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

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

revision 2061 by persson, Tue Feb 23 18:32:31 2010 UTC revision 2114 by persson, Tue Aug 10 12:05:19 2010 UTC
# Line 462  namespace LinuxSampler { namespace gig { Line 462  namespace LinuxSampler { namespace gig {
462                      velocityAttenuation,                      velocityAttenuation,
463                      sampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE);                      sampleRate / CONFIG_DEFAULT_SUBFRAGMENT_SIZE);
464      }      }
465    
466        void Voice::ProcessGroupEvent(RTList<Event>::Iterator& itEvent) {
467            dmsg(4,("Voice %x processGroupEvents event type=%d", this, itEvent->Type));
468    
469            // TODO: The SustainPedal condition could be wrong, maybe the
470            // check should be if this Voice is in release stage or is a
471            // release sample instead. Need to test this in GSt.
472            if (itEvent->Param.Note.Key != MIDIKey ||
473                !GetGigEngineChannel()->SustainPedal) {
474                dmsg(4,("Voice %x - kill", this));
475    
476                // kill the voice fast
477                pEG1->enterFadeOutStage();
478            }
479        }
480    
481  }} // namespace LinuxSampler::gig  }} // namespace LinuxSampler::gig

Legend:
Removed from v.2061  
changed lines
  Added in v.2114

  ViewVC Help
Powered by ViewVC