# Unity WebGL fails to build with FMOD implemented

**URL:** https://qa.fmod.com/t/unity-webgl-fails-to-build-with-fmod-implemented/16119
**Category:** Unity
**Created:** [August 28, 2020, 7:40am UTC](https://qa.fmod.com/t/unity-webgl-fails-to-build-with-fmod-implemented/16119 "2020-08-28T07:40:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![FishEyes95](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@FishEyes95](https://qa.fmod.com/u/FishEyes95)
#### Post date: [August 28, 2020, 7:40am UTC](https://qa.fmod.com/t/unity-webgl-fails-to-build-with-fmod-implemented/16119/1 "2020-08-28T07:40:13Z")

</div>

Hi everyone,

I’m currently in the middle of building a project within Unity, using FMOD for my audio and building for WebGL.

I am using:

- Unity 2019.4.3f1
- FMOD 2.00.10

I have been following this guide to learn how to have FMOD successfully build in WebGL:

[https://www.fmod.com/resources/documentation-api?version=1.10&page=content/generated/engine\_new\_unity/html5\_webgl.html](https://www.fmod.com/resources/documentation-api?version=1.10&page=content/generated/engine_new_unity/html5_webgl.html)

As per what is referenced in the manual, if I deselect WebGL for the libfmodstudiounitypluginL plugin to be used on, my project builds perfectly fine.

If I include the plugin for WebGL, I get 3 fatal errors with my build:

 ![Screen Shot 2020-08-28 at 5.39.09 pm](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/c/cdd3f0a297c61c9d3d647646066b9c17aa2fee74.png)

I am unsure as to why this is occurring and how to troubleshoot it. Any help would be greatly appreciated.

Cheers,

- Tom

---

<div class="post-metadata">

### Author: ![FishEyes95](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@FishEyes95](https://qa.fmod.com/u/FishEyes95)
#### Post date: [September 4, 2020, 2:36am UTC](https://qa.fmod.com/t/unity-webgl-fails-to-build-with-fmod-implemented/16119/2 "2020-09-04T02:36:01Z")

</div>

Update:

I have figured out that it was the Resonance Audio plugins I am using that is causing the build to fail.

I opted to switch to the FMOD Spatialiser plugins instead, which allowed the same effect and for the WebGL build to run successfully, but without any FMOD audio embedded in the build. The project is muted.

When I took off the spatialiser plugin and tried a build, I had the same outcome - no audio from FMOD.

The audio files I have within my event are 1st order ambisonic tracks that I have bounced from Reaper.

 ![Screen Shot 2020-09-04 at 12.34.08 pm](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/c/cc74f36d36a55a745c5cb6f1ea455076698c2ebe.png)

Is this why I’m not getting any audio? Because WebGL doesn’t support ambisonic audio files yet?

I have read about mentions of an API for a WebGL build with FMOD, but that has gone over my head a little bit on the technical front.

I’m currently using:

- Unity 2018.4.26f1
- FMOD Studio 2.00.10

Having the project I’m developing embedded on a website and have functioning ambisonic spatialisation is key to the creative direction, so if anyone is able to point out where I’m going wrong with my approach, that would be greatly appreciated.

Am I using too old a version of Unity? Does WebGL not support ambisonic spatialisation at all?

Cheers,

---

<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: [September 10, 2020, 4:04am UTC](https://qa.fmod.com/t/unity-webgl-fails-to-build-with-fmod-implemented/16119/3 "2020-09-10T04:04:30Z")

</div>

As mentioned by Mathew in the thread linked below:

> FMOD doesn’t natively support Ambisonics, support is derived by using the Resonance or Oculus spatialization plugins. Unfortunately these plugins aren’t available for WebGL, they would need to be ported over.

Unfortunately without the Resonance plugins it isn’t possible to play Ambisonics with FMOD.

> [@Does WebGL support spatialized audio?](https://qa.fmod.com/t/does-webgl-support-spatialized-audio/16148/):
>
> Hi guys, Pretty simple question here. I’m working on a project for a client and the key technical components are that spatialised audio is utilised and that the project is able to be embedded into a website. In the current Unity project (using Unity 2018.4.26f1 and FMOD Studio 2.00.10) I am able to get a functioning bounce into WebGL, but without any of the spatialised audio I have made in FMOD. The project is muted. When I took off the spatialiser plugin and tried a build, I had the same out…
