--- linuxsampler/trunk/src/Sampler.cpp 2007/08/10 14:33:41 1282 +++ linuxsampler/trunk/src/Sampler.cpp 2007/08/10 15:06:11 1283 @@ -67,6 +67,13 @@ void SamplerChannel::SetEngineType(String EngineType) throw (Exception) { dmsg(2,("SamplerChannel: Assigning engine type...")); + + if (pEngineChannel) { + if (!strcasecmp(pEngineChannel->EngineName().c_str(), EngineType.c_str())) { + dmsg(2,("OK\n")); + return; + } + } // create new engine channel EngineChannel* pNewEngineChannel = EngineChannelFactory::Create(EngineType);