# system::loadPlugin loads vst plugin has no effect

**URL:** https://qa.fmod.com/t/system-loadplugin-loads-vst-plugin-has-no-effect/14806
**Category:** FMOD Engine
**Created:** [June 24, 2019, 1:41pm UTC](https://qa.fmod.com/t/system-loadplugin-loads-vst-plugin-has-no-effect/14806 "2019-06-24T13:41:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![coderlin](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@coderlin](https://qa.fmod.com/u/coderlin)
#### Post date: [June 24, 2019, 1:41pm UTC](https://qa.fmod.com/t/system-loadplugin-loads-vst-plugin-has-no-effect/14806/1 "2019-06-24T13:41:28Z")

</div>

i’m trying to load vst plugin using low level api,and i’ve been able to get it’s name and type correctly,but the sound has no effects.when i load this plugin into audition and apply it into a track it works just fine ,the sound get effects immediately without any further settings.what did i do wrong?here is my code and any help will be appreciate.

```
//vst plugin
unsigned int baseHandle;
ERRCHECK(system->setPluginPath("G:\\vts\\en\\"));
//ERRCHECK(system->loadPlugin("ElastiquePitchV2O.dll", &baseHandle));
//ERRCHECK(system->loadPlugin("AutoTune5.dll", &baseHandle));
ERRCHECK(system->loadPlugin("SonitusFXEqualizerVST.dll", &baseHandle));
int countNested=0;
vector<FMOD_PLUGINTYPE> vtPluginTypes;
ERRCHECK(system->getNumNestedPlugins(baseHandle, &countNested));
for (int index = 0; index < countNested; ++index)
{
	unsigned int handle;
	ERRCHECK(system->getNestedPlugin(baseHandle, index, &handle));
	FMOD_PLUGINTYPE type;
	ERRCHECK(system->getPluginInfo(handle, &type, 0, 0, 0));
	vtPluginTypes.push_back(type);
}
FMOD::DSP *vstDsp=NULL;
result = system->createDSPByType(FMOD_DSP_TYPE_VSTPLUGIN, &vstDsp);
/*
    Add them to the master channel group. Each time an effect is added (to position 0) it pushes the others down the list.
*/
result = mastergroup->addDSP(0, vstDsp);
ERRCHECK(result);

```

 ![badvst](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/1X/13d1ea34f800c0f3dd4a9b7a4bb2d839d9d5d0bc.png)

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [July 2, 2019, 3:44am UTC](https://qa.fmod.com/t/system-loadplugin-loads-vst-plugin-has-no-effect/14806/2 "2019-07-02T03:44:09Z")

</div>

It looks like you will want to use [System::createDSPByPlugin](https://fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_createdspbyplugin) rather than createDSPByType, so that the plugin is used to create the DSP.

The DSP created by using the VST type is just a shell DSP that you cannot really do anything with, you need to use the plugin to create the DSP.
