--- linuxsampler/trunk/src/drivers/Plugin.cpp 2009/03/30 16:56:41 1881 +++ linuxsampler/trunk/src/drivers/Plugin.cpp 2009/04/01 15:21:13 1882 @@ -205,8 +205,10 @@ EngineChannel* engine_channel = channel->GetEngineChannel(); engine_channel->Volume(volume); if (!filename.empty() && index != -1) { - engine_channel->PrepareLoadInstrument(filename.c_str(), index); - engine_channel->LoadInstrument(); + InstrumentManager::instrument_id_t id; + id.FileName = filename; + id.Index = index; + InstrumentManager::LoadInstrumentInBackground(id, engine_channel); } if (solo) engine_channel->SetSolo(solo); if (mute) engine_channel->SetMute(1);