# Register DSP from C++ in Unreal before Bank Load

**URL:** <https://qa.fmod.com/t/register-dsp-from-c-in-unreal-before-bank-load/20317>\
**Category:** Unreal Engine\
**Tags:** cpp\
**Created:** [June 15, 2023, 10:39pm UTC](https://qa.fmod.com/t/register-dsp-from-c-in-unreal-before-bank-load/20317 "2023-06-15T22:39:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dquartz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dquartz/32/4978_2.png) [@dquartz](https://qa.fmod.com/u/dquartz)\
**Post date:** [June 15, 2023, 10:39pm UTC](https://qa.fmod.com/t/register-dsp-from-c-in-unreal-before-bank-load/20317/1 "2023-06-15T22:39:18Z")

</div>

I’ve written some custom DSP for FMOD to be used in FMOD Studio. This means when loading those banks in Unreal, the DSP has to be registered before banks are loaded. The only avenue for this with the current integration is to use a precompiled library, but what I’d like to do is include the source for the DSP in the Unreal project so that it can be built for all platforms that way, rather than maintain a separate project, since it may need to be built for some consoles. This means I am unable to register the dsp with `FMOD::Studio::System::registerPlugin` before banks are loaded, so the banks fail to load when they contain events that use the plugin. What would be the best way to work around this?

---

<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:** [June 16, 2023, 5:25am UTC](https://qa.fmod.com/t/register-dsp-from-c-in-unreal-before-bank-load/20317/2 "2023-06-16T05:25:49Z")

</div>

The FMOD Unreal Integration will always load the Master Bank and the Master Strings Bank, although you can disable loading of other banks in the Plugin Settings: [https://fmod.com/docs/2.02/unreal/user-guide.html#in-game](https://fmod.com/docs/2.02/unreal/user-guide.html#in-game). This will allow you to load your plugin and then the banks manually.

---

<div class="post-metadata">

**Author:** ![dquartz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dquartz/32/4978_2.png) [@dquartz](https://qa.fmod.com/u/dquartz)\
**Post date:** [June 16, 2023, 10:22pm UTC](https://qa.fmod.com/t/register-dsp-from-c-in-unreal-before-bank-load/20317/3 "2023-06-16T22:22:01Z")

</div>

Thanks, this works for me.
