# Loading VSTs with FMOD\_DSP\_TYPE\_VSTPLUGIN

**URL:** <https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398>\
**Category:** FMOD Engine\
**Created:** [February 28, 2019, 2:35am UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398 "2019-02-28T02:35:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethin](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@Ethin](https://qa.fmod.com/u/Ethin)\
**Post date:** [February 28, 2019, 2:35am UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/1 "2019-02-28T02:35:36Z")

</div>

Hello all,

I’m interested in knowing how I might go about loading VSTs and other various DSP plugins with DSP types lke FMOD\_DSP\_TYPE\_VSTPLUGIN and FMOD\_DSP\_TYPEWINAMPPLUGIN. Would I call System::loadPlugin() and then create the DSP by type? And if so, what parameters would I set?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [March 13, 2019, 12:51am UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/2 "2019-03-13T00:51:13Z")

</div>

That’s right, you would just use `System::loadPlugin()` like a regular plugin. Take a look at the DSP examples in the API examples VS project for more information on setting it up and setting parameters.

---

<div class="post-metadata">

**Author:** ![Ethin](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@Ethin](https://qa.fmod.com/u/Ethin)\
**Post date:** [March 13, 2019, 4:59pm UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/3 "2019-03-13T16:59:57Z")

</div>

I’m not sure what you mean by “DSP plugin API examples”. Would you mind elaborating? Unless you mean the output\_mp3.cpp stuff, and fmod\_gain.cpp, fmod\_noise.cpp, fmod\_distance\_filter.cpp, and output\_mp3.cpp files under plugins in the lowlevel examples folder?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [March 18, 2019, 3:31am UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/4 "2019-03-18T03:31:22Z")

</div>

My mistake, I was thinking of DSPs not plugins. You can read more about loading plugins using this documentation:

[https://fmod.com/resources/documentation-api?version=1.10&page=content/generated/overview/plugin\_api\_dsp.html](https://fmod.com/resources/documentation-api?version=1.10&page=content/generated/overview/plugin_api_dsp.html)

---

<div class="post-metadata">

**Author:** ![Ethin](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@Ethin](https://qa.fmod.com/u/Ethin)\
**Post date:** [March 18, 2019, 4:49am UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/5 "2019-03-18T04:49:42Z")

</div>

OK… so let me write down the steps I believe I need to do to get a VST to work:

1. call System::loadPlugin() to load the VST as a DLL FMOD plugin.
2. call System::createDSPByPlugin and pass it the acquired plugin handle
3. Use it like any other DSP  
Is that right?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [March 20, 2019, 12:26am UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/6 "2019-03-20T00:26:52Z")

</div>

That is correct. You do need to make sure your VST format matches your FMOD format (eg. x86 VST must be built with x86 FMOD, etc.).

---

<div class="post-metadata">

**Author:** ![Ethin](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@Ethin](https://qa.fmod.com/u/Ethin)\
**Post date:** [March 20, 2019, 1:03pm UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/7 "2019-03-20T13:03:21Z")

</div>

Wow, I never thought it would be that simple, I thought the process was all drawn out and all that since there’s no documentation in the manual about it. Correct me if I’m wrong but I assume that applies to all other plugin types as well for DSPs? If so, thank you – this just brightened my day and made my life a hole lot easier! 🙂

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [March 22, 2019, 4:24am UTC](https://qa.fmod.com/t/loading-vsts-with-fmod-dsp-type-vstplugin/14398/8 "2019-03-22T04:24:43Z")

</div>

It’s not a very common function to use since VSTs aren’t very portable.

Can you let me know what you mean by “other plugin types”? Theoretically you could load most plugins but it’s recommended to use FMOD-specific plugins for portability and reliability.
