--- linuxsampler/trunk/src/drivers/Plugin.h 2008/09/15 16:58:10 1777 +++ linuxsampler/trunk/src/drivers/Plugin.h 2009/02/16 17:56:50 1835 @@ -64,19 +64,22 @@ */ class Plugin { protected: - Plugin(); - ~Plugin(); - void Init(int SampleRate, int FragmentSize); + Plugin(bool bDoPreInit = true); + virtual ~Plugin(); + void PreInit(); + void Init(int SampleRate, int FragmentSize, int Channels = -1); void InitState(); String GetState(); bool SetState(String State); + void RemoveChannels(); AudioOutputDevicePlugin* pAudioDevice; MidiInputDevicePlugin* pMidiDevice; static PluginGlobal* global; + private: - void RemoveChannels(); + bool bPreInitDone; }; }