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

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

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

revision 53 by schoenebeck, Mon Apr 26 17:15:51 2004 UTC revision 237 by senkov, Sun Sep 12 01:59:40 2004 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003 by Benno Senoner and Christian Schoenebeck         *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *                                                                         *   *                                                                         *
7   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
8   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 112  namespace LinuxSampler { namespace gig { Line 112  namespace LinuxSampler { namespace gig {
112                  }                  }
113                  case stage_decay2: {                  case stage_decay2: {
114                      int process_end;                      int process_end;
115                      if (pTransitionEvent && pTransitionEvent->Type == Event::type_release) {                      if (pTransitionEvent && pTransitionEvent->Type == Event::type_release && pTransitionEvent->FragmentPos() <= Samples) {
116                          process_end      = pTransitionEvent->FragmentPos();                          process_end      = pTransitionEvent->FragmentPos();
117                          pTransitionEvent = pEvents->next();                          pTransitionEvent = pEvents->next();
118                          Stage            = stage_release; // switch to release stage soon                          Stage            = stage_release; // switch to release stage soon
# Line 127  namespace LinuxSampler { namespace gig { Line 127  namespace LinuxSampler { namespace gig {
127                  }                  }
128                  case stage_sustain: {                  case stage_sustain: {
129                      int process_end;                      int process_end;
130                      if (pTransitionEvent && pTransitionEvent->Type == Event::type_release) {                      if (pTransitionEvent && pTransitionEvent->Type == Event::type_release && pTransitionEvent->FragmentPos() <= Samples) {
131                          process_end      = pTransitionEvent->FragmentPos();                          process_end      = pTransitionEvent->FragmentPos();
132                          pTransitionEvent = pEvents->next();                          pTransitionEvent = pEvents->next();
133                          Stage            = stage_release; // switch to release stage soon                          Stage            = stage_release; // switch to release stage soon
# Line 140  namespace LinuxSampler { namespace gig { Line 140  namespace LinuxSampler { namespace gig {
140                  }                  }
141                  case stage_release: {                  case stage_release: {
142                      int process_end;                      int process_end;
143                      if (pTransitionEvent && pTransitionEvent->Type == Event::type_cancel_release) {                      if (pTransitionEvent && pTransitionEvent->Type == Event::type_cancel_release && pTransitionEvent->FragmentPos() <= Samples) {
144                          process_end      = pTransitionEvent->FragmentPos();                          process_end      = pTransitionEvent->FragmentPos();
145                          pTransitionEvent = pEvents->next();                          pTransitionEvent = pEvents->next();
146                          Stage            = (InfiniteSustain) ? stage_sustain : stage_decay2; // switch back to sustain / decay2 stage soon                          Stage            = (InfiniteSustain) ? stage_sustain : stage_decay2; // switch back to sustain / decay2 stage soon

Legend:
Removed from v.53  
changed lines
  Added in v.237

  ViewVC Help
Powered by ViewVC