# Fmod unity build DLL problems

**URL:** https://qa.fmod.com/t/fmod-unity-build-dll-problems/12377
**Category:** Unity
**Created:** [March 14, 2016, 9:48am UTC](https://qa.fmod.com/t/fmod-unity-build-dll-problems/12377 "2016-03-14T09:48:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Arano](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Arano](https://qa.fmod.com/u/Arano)
#### Post date: [March 14, 2016, 9:48am UTC](https://qa.fmod.com/t/fmod-unity-build-dll-problems/12377/1 "2016-03-14T09:48:18Z")

</div>

Hallo Everyone,

We are working on a 2d platformer, and decided to used Fmod for our sound and music. Getting it working in unity was not that hard but now ive ran into some DLL problems when building my solution. In unity it all works fine but i can not get it to work when building.

it keeps giving me the message that it can not load the “fmodstudiol.dll”, ive checked all the folders for the correct files, made sure they were the correct 32/64 bit DLL’s (both builds did not work). and also placed my dll’s that are used in editor in the plugins folder but it stil cant find or load the DLL.

> Fallback handler could not load library C:/Users/XX/Documents/Unity/build\_folder/data\_folder/Mono/.\C:/Users/XX/Documents/Unity/build\_folder/data\_folder/Plugins/fmodstudiol.dll  
> Fallback handler could not load library C:/Users/XX/Documents/Unity/build\_folder/data\_folder/Mono/.\C:/Users/XX/Documents/Unity/build\_folder/data\_folder/Plugins/fmodstudiol  
> Fallback handler could not load library C:/Users/XX/Documents/Unity/build\_folder/data\_folder/Mono/libC:/Users/XX/Documents/Unity/build\_folder/data\_folder/Plugins/fmodstudiol.dll  
> Fallback handler could not load library C:/Users/XX/Documents/Unity/build\_folder/data\_folder/Mono/.\libC:/Users/XX/Documents/Unity/build\_folder/data\_folder/Plugins/fmodstudiol.dll  
> Fallback handler could not load library C:/Users/XX/Documents/Unity/build\_folder/data\_folder/Mono/libC:/Users/XX/Documents/Unity/build\_folder/data\_folder/Plugins/fmodstudiol.dll  
> FMOD Studio: Creating runtime system instance  
> UnityEngine.DebugLogHandler:Internal\_Log(LogType, String, Object)  
> UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object)  
> UnityEngine.Logger:Log(LogType, Object)  
> UnityEngine.Debug:Log(Object)  
> FMODUnity.RuntimeManager:Initialiase(Boolean) (at C:\Users\XX\Documents\Unity\editor\_game\_folder\game\_name\Assets\Plugins\FMOD\RuntimeManager.cs:153)  
> FMODUnity.RuntimeManager:get\_Instance() (at C:\Users\XX\Documents\Unity\editor\_game\_folder\game\_name\Assets\Plugins\FMOD\RuntimeManager.cs:78)  
> FMODUnity.RuntimeManager:SetListenerLocation(GameObject, Rigidbody) (at C:\Users\XX\Documents\Unity\editor\_game\_folder\game\_name\Assets\Plugins\FMOD\RuntimeManager.cs:582)  
> FMODUnity.StudioListener:OnEnable() (at C:\Users\XX\Documents\Unity\editor\_game\_folder\game\_name\Assets\Plugins\FMOD\StudioListener.cs:17)

> DllNotFoundException: C:/Users/XX/Documents/Unity/DLL test reimpoted assets/game\_Build/Plugins/fmodstudiol.dll  
> at (wrapper managed-to-native) FMOD.Studio.EventInstance:FMOD\_Studio\_EventInstance\_Set3DAttributes (intptr,FMOD.ATTRIBUTES\_3D&)  
> at FMOD.Studio.EventInstance.set3DAttributes (ATTRIBUTES\_3D attributes) [0x00000] in C:\Users\XX\Documents\Unity\editor\_Folder\Game\_name\Assets\Plugins\FMOD\Wrapper\fmod\_studio.cs:1356  
> at GameManager+c\_\_Iterator6.MoveNext () [0x000d8] in C:\Users\XX\Documents\Unity\editor\_Folder\Game\_name\Assets\Scripts\Misc\GameManager.cs

Ive been googling some solution’s for this problem but have yet to find a working one.

[FMOD Unity Integration 1.07.03 fails on Windows Build - Unity - FMOD Forums](http://www.fmod.org/questions/question/fmod-unity-integration-1-07-03-fails-on-windows-build/) this site said to add delay to fmod scrypt and also a few seconds delay on the start() functions using fmod. ive done this to a few scrypts and disabled all others but this did not work for me.

The solution some people suggested to turn on “script debugging” and “developer mode” seemed to work (for some reason) but this is not acceptable for us for a finished build we can use. Reason for this is that this project is commissioned by another party that expects a normal build.

have not done that much special things with Fmod, we have no looping music yet only sounds and event sounds in 3d. some code usage examples, i am using FMOD 1.07.07 and Unity 5.3.2f1:

```
    //unity variable's
[FMODUnity.EventRef]
private string grabSound = "event:/Player/GrabAndRelease";
FMOD.Studio.EventInstance grabSoundEvent = null;
FMOD.Studio.ParameterInstance grabSoundParameter = null;

// at Awake()
grabSoundEvent = FMODUnity.RuntimeManager.CreateInstance(grabSound);
grabSoundEvent.getParameter("grab/Release", out grabSoundParameter);
FMOD.ATTRIBUTES_3D attributes3D = setAtributes();
grabSoundEvent.set3DAttributes(attributes3D);

// playing sound from Update()
grabSoundEvent.stop(FMOD.Studio.STOP_MODE.IMMEDIATE);
grabSoundParameter.setValue(0.1f);
FMOD.ATTRIBUTES_3D attributes3D = setAtributes();
grabSoundEvent.set3DAttributes(attributes3D);
grabSoundEvent.start();

//Setting all 3D parameters void
private FMOD.ATTRIBUTES_3D setAtributes()
{
    FMOD.ATTRIBUTES_3D attributes3D = new FMOD.ATTRIBUTES_3D();
    attributes3D.forward.x = this.transform.forward.x;
    attributes3D.forward.y = this.transform.forward.y;
    attributes3D.forward.z = this.transform.forward.z;
    attributes3D.up.x = this.transform.up.x;
    attributes3D.up.y = this.transform.up.y;
    attributes3D.up.z = this.transform.up.z;
    attributes3D.velocity.x = 0f;
    attributes3D.velocity.y = 0f;
    attributes3D.velocity.z = 0f;
    attributes3D.position.x = this.transform.position.x;
    attributes3D.position.y = this.transform.position.y;
    attributes3D.position.z = this.transform.position.z;
    return attributes3D;
}    

```

As far as i know i have not done anything wrong with using Fmod, setting 3D attributes in a enumeration like this seemed to be the only way, and the rest of the code comes from a few basic tutorials.

I hope anyone has a working solution for me so we can continue using FMOD in our builds. Or if there is no solution to this, when can we expect a fix for these DLL problems?

---

<div class="post-metadata">

### Author: ![abraksil](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@abraksil](https://qa.fmod.com/u/abraksil)
#### Post date: [May 9, 2016, 5:30pm UTC](https://qa.fmod.com/t/fmod-unity-build-dll-problems/12377/2 "2016-05-09T17:30:45Z")

</div>

I have exactly the same problem. 😕 Any solution’s?

---

<div class="post-metadata">

### Author: ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)
#### Post date: [May 11, 2016, 12:40am UTC](https://qa.fmod.com/t/fmod-unity-build-dll-problems/12377/3 "2016-05-11T00:40:32Z")

</div>

> [@](#):
>
> I have exactly the same problem. 😕 Any solution’s?

Have you tried 1.08.01 or later?

---

<div class="post-metadata">

### Author: ![Arano](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Arano](https://qa.fmod.com/u/Arano)
#### Post date: [May 10, 2016, 8:42am UTC](https://qa.fmod.com/t/fmod-unity-build-dll-problems/12377/4 "2016-05-10T08:42:39Z")

</div>

Hey Jakub,

People from FMOD gave me this link that should fix my DLL issue.

"If you extract this over your project (backing up first is always a good idea) it should fix the issue.

[http://www.fmod.org/files/UnityUnifiedLib.zip](http://www.fmod.org/files/UnityUnifiedLib.zip)"

also they claimed they would add a fix to FMOD in the 1.08.01 build. This build should be out already. I did not test this yet.
