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

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

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

revision 2836 by persson, Sat Feb 11 11:08:09 2012 UTC revision 2837 by persson, Sun Aug 23 06:14:00 2015 UTC
# Line 4  Line 4 
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck    *   *   Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck    *
6   *   Copyright (C) 2005-2009 Christian Schoenebeck                         *   *   Copyright (C) 2005-2009 Christian Schoenebeck                         *
7   *   Copyright (C) 2009-2012 Grigor Iliev                                  *   *   Copyright (C) 2009-2015 Grigor Iliev                                  *
8   *                                                                         *   *                                                                         *
9   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
10   *   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 47  namespace LinuxSampler { namespace sfz { Line 47  namespace LinuxSampler { namespace sfz {
47          if (this->DoLoop) { // honor looping          if (this->DoLoop) { // honor looping
48              total_readsamples  = pSample->ReadAndLoop(pBuf, SamplesToRead, &PlaybackState, pRegion);              total_readsamples  = pSample->ReadAndLoop(pBuf, SamplesToRead, &PlaybackState, pRegion);
49              endofsamplereached = (this->PlaybackState.position >= pSample->GetTotalFrameCount());              endofsamplereached = (this->PlaybackState.position >= pSample->GetTotalFrameCount());
50              dmsg(5,("Refilled stream %d with %d (SamplePos: %d)", this->hThis, total_readsamples, this->PlaybackState.position));              dmsg(5,("Refilled stream %d with %ld (SamplePos: %lu)", this->hThis, total_readsamples, this->PlaybackState.position));
51          }          }
52          else { // normal forward playback          else { // normal forward playback
53    
# Line 63  namespace LinuxSampler { namespace sfz { Line 63  namespace LinuxSampler { namespace sfz {
63              this->SampleOffset = pSample->GetPos();              this->SampleOffset = pSample->GetPos();
64    
65              endofsamplereached = (SampleOffset >= pSample->GetTotalFrameCount());              endofsamplereached = (SampleOffset >= pSample->GetTotalFrameCount());
66              dmsg(5,("Refilled stream %d with %d (SamplePos: %d)", this->hThis, total_readsamples, this->SampleOffset));              dmsg(5,("Refilled stream %d with %ld (SamplePos: %lu)", this->hThis, total_readsamples, this->SampleOffset));
67          }          }
68    
69          // update stream state          // update stream state

Legend:
Removed from v.2836  
changed lines
  Added in v.2837

  ViewVC Help
Powered by ViewVC