--- linuxsampler/trunk/src/engines/gig/Voice.h 2006/06/25 13:54:17 877 +++ linuxsampler/trunk/src/engines/gig/Voice.h 2007/02/03 15:33:00 1038 @@ -147,6 +147,7 @@ float CutoffBase; ///< Cutoff frequency before control change, EG and LFO are applied ::gig::Sample* pSample; ///< Pointer to the sample to be played back ::gig::DimensionRegion* pDimRgn; ///< Pointer to the articulation information of current dimension region of this voice + bool Orphan; ///< true if this voice is playing a sample from an instrument that is unloaded. When the voice dies, the sample (and dimension region) will be handed back to the instrument resource manager. 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