# Can't get Fmod to work in my project

**URL:** <https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743>\
**Category:** Unity\
**Tags:** unity\
**Created:** [February 12, 2021, 3:13pm UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743 "2021-02-12T15:13:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaizen](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/kaizen/32/1927_2.png) [@Kaizen](https://qa.fmod.com/u/Kaizen)\
**Post date:** [February 12, 2021, 3:13pm UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/1 "2021-02-12T15:13:46Z")

</div>

I followed the tutorial and tried to play just one music in my project.  
I can’t get it to work. Even in a new clean scene  
My setup: Unity URP 2020.2.3f1, Fmod studio + unity package 2.01.05 (I did try with 2.01.07, same result)  
I get errors in the console:

```
    [FMOD] Max number of listeners reached : 8.
UnityEngine.Debug:LogWarning (object)
FMODUnity.RuntimeManager:AddListener (FMODUnity.StudioListener) (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:348)
FMODUnity.StudioListener:OnEnable () (at Assets/Plugins/FMOD/src/Runtime/StudioListener.cs:20)

```

ArgumentNullException: Value cannot be null.  
Parameter name: value  
System.RuntimeType.IsEnumDefined (System.Object value) (at \<9577ac7a62ef43179789031239ba8798\>:0)  
System.Enum.IsDefined (System.Type enumType, System.Object value) (at \<9577ac7a62ef43179789031239ba8798\>:0)  
FMODUnity.Platform.GetOutputType () (at Assets/Plugins/FMOD/src/Runtime/Platform.cs:638)  
FMODUnity.RuntimeManager.Initialize () (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:200)  
FMODUnity.RuntimeManager.get\_Instance () (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:108)  
Rethrow as SystemNotInitializedException: [FMOD] Initialization failed  
FMODUnity.RuntimeManager.get\_Instance () (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:117)  
FMODUnity.RuntimeManager.get\_StudioSystem () (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:131)  
FMODUnity.RuntimeManager.AddListener (FMODUnity.StudioListener listener) (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:366)  
FMODUnity.StudioListener.OnEnable () (at Assets/Plugins/FMOD/src/Runtime/StudioListener.cs:20)

So I tried to test the integration in a new URP project and it works well instantly. No errors and the music plays.  
What could cause this? A configuration error? I see that the exception is linked to OUTPUTTYPE in the platforms script.

Thanks in advance for the help

---

<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:** [February 16, 2021, 12:45am UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/2 "2021-02-16T00:45:36Z")

</div>

When you say you are getting this error in a new clean scene, can you confirm there is only one camera and only one FMOD Studio Listener component in the whole scene? Are there any custom scripts being run at the start?

---

<div class="post-metadata">

**Author:** ![Kaizen](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/kaizen/32/1927_2.png) [@Kaizen](https://qa.fmod.com/u/Kaizen)\
**Post date:** [February 16, 2021, 7:38am UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/3 "2021-02-16T07:38:01Z")

</div>

In my current project, in a new sample scene (the one by default), with 1 camera and only 1 fmod listener.

About custom script I don’t think so, in the sample scene I customized nothing.

If I try in a brand new project it works well.

I found a workaround though: [Weird issue with MAX\_LISTENERS constant](https://qa.fmod.com/t/weird-issue-with-max-listeners-constant/16745)

---

<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:** [February 17, 2021, 1:33am UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/4 "2021-02-17T01:33:00Z")

</div>

I’ve tested our Unity integration in Unity 2020.2 and a few older versions but haven’t been able to replicate the issue you found. It might even be a cache issue, but I can’t be certain. I’ll keep an eye out for any other reports of this bug but for the meantime please use the workaround you have found.

---

<div class="post-metadata">

**Author:** ![nicolasmanz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/nicolasmanz/32/1965_2.png) [@nicolasmanz](https://qa.fmod.com/u/nicolasmanz)\
**Post date:** [February 28, 2021, 5:15am UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/5 "2021-02-28T05:15:29Z")

</div>

Hello! This is happening to me as well. I tried importing FMOD in a big project and I got the same errors. Changing MAX\_LISTENERS to 100 worked. I’m using Unity 2019.3.10f1 though.

---

<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 3, 2021, 4:17am UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/6 "2021-03-03T04:17:27Z")

</div>

Do you get the same issue if you try to install the FMOD integration in a blank project (not a blank scene in an existing project)?

---

<div class="post-metadata">

**Author:** ![nicolasmanz](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/nicolasmanz/32/1965_2.png) [@nicolasmanz](https://qa.fmod.com/u/nicolasmanz)\
**Post date:** [March 4, 2021, 11:03am UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/7 "2021-03-04T11:03:03Z")

</div>

No, in a blank project it works just fine.

---

<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 10, 2021, 4:37am UTC](https://qa.fmod.com/t/cant-get-fmod-to-work-in-my-project/16743/8 "2021-03-10T04:37:04Z")

</div>

Since we are unable to reproduce this on our machines, if you are able to share your Unity project with us it will help us to identify and fix this issue. If you cannot share your project, please keep using the MAX\_LISTENERS workaround as long as you don’t run into any other issues.
