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

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

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

revision 3250 by schoenebeck, Thu Dec 15 12:47:45 2016 UTC revision 3251 by schoenebeck, Mon May 29 22:19:19 2017 UTC
# Line 295  namespace LinuxSampler { namespace sfz { Line 295  namespace LinuxSampler { namespace sfz {
295              }              }
296          }          }
297      }      }
298        
299      void Voice::SetSampleStartOffset() {      void Voice::SetSampleStartOffset() {
300          if (DiskVoice && RgnInfo.SampleStartOffset > pSample->MaxOffset) {          AbstractVoice::SetSampleStartOffset();
301    
302            if (DiskVoice && Pos > pSample->MaxOffset) {
303              // The offset is applied to the RAM buffer              // The offset is applied to the RAM buffer
304              finalSynthesisParameters.dPos = 0;              finalSynthesisParameters.dPos = 0;
305              Pos = 0;              Pos = 0;
         } else {  
             finalSynthesisParameters.dPos = RgnInfo.SampleStartOffset; // offset where we should start playback of sample  
             Pos = RgnInfo.SampleStartOffset;  
306          }          }
307      }      }
308    

Legend:
Removed from v.3250  
changed lines
  Added in v.3251

  ViewVC Help
Powered by ViewVC