--- linuxsampler/trunk/src/engines/gig/Voice.h 2004/12/28 09:43:04 329 +++ linuxsampler/trunk/src/engines/gig/Voice.h 2004/12/29 01:14:15 330 @@ -125,6 +125,7 @@ playback_state_t PlaybackState; ///< When a sample will be triggered, it will be first played from RAM cache and after a couple of sample points it will switch to disk streaming and at the end of a disk stream we have to add null samples, so the interpolator can do it's work correctly bool DiskVoice; ///< If the sample is very short it completely fits into the RAM cache and doesn't need to be streamed from disk, in that case this flag is set to false Stream::reference_t DiskStreamRef; ///< Reference / link to the disk stream + int RealSampleWordsLeftToRead; ///< Number of samples left to read, not including the silence added for the interpolator unsigned long MaxRAMPos; ///< The upper allowed limit (not actually the end) in the RAM sample cache, after that point it's not safe to chase the interpolator another time over over the current cache position, instead we switch to disk then. bool RAMLoop; ///< If this voice has a loop defined which completely fits into the cached RAM part of the sample, in this case we handle the looping within the voice class, else if the loop is located in the disk stream part, we let the disk stream handle the looping uint LoopCyclesLeft; ///< In case there is a RAMLoop and it's not an endless loop; reflects number of loop cycles left to be passed