--- linuxsampler/trunk/src/engines/gig/Voice.h 2004/10/14 21:31:26 285 +++ linuxsampler/trunk/src/engines/gig/Voice.h 2004/10/16 17:38:03 287 @@ -102,7 +102,7 @@ void Reset(); void SetOutput(AudioOutputDevice* pAudioOutputDevice); void SetEngine(Engine* pEngine); - int Trigger(Pool::Iterator& itNoteOnEvent, int PitchBend, ::gig::Instrument* pInstrument, int iLayer = 0, bool ReleaseTriggerVoice = false); + int Trigger(Pool::Iterator& itNoteOnEvent, int PitchBend, ::gig::Instrument* pInstrument, int iLayer, bool ReleaseTriggerVoice, bool VoiceStealing); inline bool IsActive() { return PlaybackState; } private: // Types @@ -148,7 +148,10 @@ LFO* pLFO2; ///< Low Frequency Oscillator 2 (Filter cutoff frequency) LFO* pLFO3; ///< Low Frequency Oscillator 3 (Pitch) Pool::Iterator itTriggerEvent; ///< First event on the key's list the voice should process (only needed for the first audio fragment in which voice was triggered, after that it will be set to NULL). + public: // FIXME: just made public for debugging (sanity check in Engine::RenderAudio()), should be changed to private before the final release Pool::Iterator itKillEvent; ///< Event which caused this voice to be killed + private: + // Static Methods static float CalculateFilterCutoffCoeff();