# WebGL - TypeError: Module.waitForAudioWorklet is not a function

**URL:** <https://qa.fmod.com/t/webgl-typeerror-module-waitforaudioworklet-is-not-a-function/22882>\
**Category:** Unity\
**Tags:** html5, unity\
**Created:** [May 5, 2025, 9:08am UTC](https://qa.fmod.com/t/webgl-typeerror-module-waitforaudioworklet-is-not-a-function/22882 "2025-05-05T09:08:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mordi](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mordi/32/5156_2.png) [@Mordi](https://qa.fmod.com/u/Mordi)\
**Post date:** [May 5, 2025, 9:08am UTC](https://qa.fmod.com/t/webgl-typeerror-module-waitforaudioworklet-is-not-a-function/22882/1 "2025-05-05T09:08:22Z")

</div>

Unity 6.0 and FMOD 2.03.07

When I try to run a WebGL build in Firefox, I get this error.

 ![bilde](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/0b716ba69269e9b86d2e9ce1b8618186c64cab07.png)

 ![bilde](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/4ed105c31a3507989ce5041d55ecd79cc1623186.png)

I’ve tried

- Disabling code stripping
- Using a previous version of FMOD (just upgraded from 2.02 to 2.03 to see if that fixed this)

But so far, no luck getting around it. Has anyone experienced this?

Edit: Doing some tests:

- Using the same Unity and FMOD versions in a clean, new project; No error. Tested with a single event.
- Comparing the FMOD plugin folders of both projects; All files identical except cache and settings file.

Edit2: Solved:

- I had DSP buffer settings set to 128 samples x 4 (this yields an error)
- Upping samples to 512 fixes it, or checking “auto”.

 ![bilde](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/d1cbf9cf5c108f3b6f885bac00d78c215a24015e.png)

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [May 6, 2025, 12:01am UTC](https://qa.fmod.com/t/webgl-typeerror-module-waitforaudioworklet-is-not-a-function/22882/2 "2025-05-06T00:01:44Z")

</div>

Thanks, the message was cryptic so i’ve done an update to make it not print that - it should return an initialization error as normal, and the logging version of FMOD would produce something like

```
fmodL.js:8 [LOG] SystemI::init : Initialize version=20308 (121212), maxchannels=1024, flags=0x00000000
fmodL.js:8 [ERR] OutputAudioWorklet::init::init : DSP Buffer size (128) must be a power of two between 256 and 16384.
fmodL.js:8 [LOG] SystemI::closeInternal : Closed.

```
