/[svn]/linuxsampler/trunk/src/engines/common/Event.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/Event.cpp

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

revision 3053 by schoenebeck, Tue Apr 19 14:07:53 2016 UTC revision 3054 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC
# Line 89  namespace LinuxSampler { Line 89  namespace LinuxSampler {
89    
90          // update position of this event in the current audio fragment          // update position of this event in the current audio fragment
91          // (since calling scheduleAheadMicroSec() will relate to this)          // (since calling scheduleAheadMicroSec() will relate to this)
92          itEvent->itEvent->iFragmentPos = uiSamplesProcessed - (end - itEvent->scheduleTime);          itEvent->itEvent->iFragmentPos = int32_t( uiSamplesProcessed - (end - itEvent->scheduleTime) );
93          // safety first: fragment boundary sanity checks          // safety first: fragment boundary sanity checks
94          if (itEvent->itEvent->iFragmentPos < 0)          if (itEvent->itEvent->iFragmentPos < 0)
95              itEvent->itEvent->iFragmentPos = 0;              itEvent->itEvent->iFragmentPos = 0;
# Line 125  namespace LinuxSampler { Line 125  namespace LinuxSampler {
125    
126          // update position of this event in the current audio fragment          // update position of this event in the current audio fragment
127          // (since calling scheduleAheadMicroSec() will relate to this)          // (since calling scheduleAheadMicroSec() will relate to this)
128          itEvent->cause.iFragmentPos = uiSamplesProcessed - (end - itEvent->scheduleTime);          itEvent->cause.iFragmentPos = int32_t( uiSamplesProcessed - (end - itEvent->scheduleTime) );
129          // safety first: fragment boundary sanity checks          // safety first: fragment boundary sanity checks
130          if (itEvent->cause.iFragmentPos < 0)          if (itEvent->cause.iFragmentPos < 0)
131              itEvent->cause.iFragmentPos = 0;              itEvent->cause.iFragmentPos = 0;

Legend:
Removed from v.3053  
changed lines
  Added in v.3054

  ViewVC Help
Powered by ViewVC