--- linuxsampler/trunk/src/engines/gig/Voice.h 2011/04/25 08:12:36 2175 +++ linuxsampler/trunk/src/engines/gig/Voice.h 2013/01/05 12:31:05 2390 @@ -4,7 +4,7 @@ * * * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * * Copyright (C) 2005 - 2008 Christian Schoenebeck * - * Copyright (C) 2009 - 2011 Christian Schoenebeck and Grigor Iliev * + * Copyright (C) 2009 - 2013 Christian Schoenebeck and Grigor Iliev * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -40,6 +40,7 @@ #include "../common/VoiceBase.h" #include "SynthesisParam.h" #include "SmoothVolume.h" +#include "EngineChannel.h" namespace LinuxSampler { namespace gig { class Engine; @@ -55,6 +56,7 @@ virtual ~Voice(); void SetOutput(AudioOutputDevice* pAudioOutputDevice); void SetEngine(LinuxSampler::Engine* pEngine); + void CalculateFadeOutCoeff(float FadeOutTime, float SampleRate); protected: virtual SampleInfo GetSampleInfo(); @@ -81,6 +83,7 @@ virtual double GetVelocityRelease(uint8_t MIDIKeyVelocity); virtual double GetSampleAttenuation(); virtual void ProcessGroupEvent(RTList::Iterator& itEvent); + virtual int CalculatePan(uint8_t pan); private: EGADSR EG1;