# \[Bug\]\[2.02.04\] WebGL - Safari - No Audio in FMOD, but works for other browsers

**URL:** <https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607>\
**Category:** Unity\
**Created:** [April 1, 2022, 2:35pm UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607 "2022-04-01T14:35:29Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 1, 2022, 2:35pm UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/1 "2022-04-01T14:35:29Z")

</div>

Hi There,

Test WebGL: [urp-test](https://public.yutani.world/fmod/)

In Chrome/Firefox clicking ‘Init’ followed by ‘Play Sound’ emits audio as expected, however no audio is heard on Safari ☹

As per the docs the INIT FMOD button runs  
[https://fmod.com/resources/documentation-unity?version=2.01&page=platform-specifics.html](https://fmod.com/resources/documentation-unity?version=2.01&page=platform-specifics.html)

```
    FMODUnity.RuntimeManager.CoreSystem.mixerSuspend();
    FMODUnity.RuntimeManager.CoreSystem.mixerResume();

```

And the play sound button is a simple FMOD Studio Event Emitter

Are there any known Safari specific issues?

Versions:  
Unity **2020.3.25f1**  
FMOD **2.02.04**  
Safari **15.4**  
MacOS **12.3**

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 3, 2022, 5:41am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/2 "2022-04-03T05:41:16Z")

</div>

Note this also still appears to be an issue with the HTML5 FMOD sample demo [[Bug] WebGL - Safari - No Audio in FMOD Docs Example](https://qa.fmod.com/t/bug-webgl-safari-no-audio-in-fmod-docs-example/18378)

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 5, 2022, 6:10am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/3 "2022-04-05T06:10:43Z")

</div>

I have verified 2.02.04 is working fine in Safari. It looks like you are meeting the [user interaction requirement](https://fmod.com/resources/documentation-unity?version=2.02&page=platform-specifics.html#html5webgl) correctly, the other one for WebGL is [async bank loading](https://fmod.com/resources/documentation-unity?version=2.02&page=platform-specifics.html#checking-that-bank-has-loaded-before-playing), are you loading your banks asynchronously?

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 5, 2022, 8:27am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/4 "2022-04-05T08:27:50Z")

</div>

Hi @jeff_fmod yep I can confirm that the banks are loaded, and indeed it is still broken in Safari (just to reiterate as well, works fine in Chrome). Possibly it is related to the Safari version? However I’ve made a minimal reproduction project which can be downloaded from:

> **[fmod\_safari\_bug.zip](https://drive.google.com/file/d/1i-4dJcjxOBRlub2mmLVmmOk5CWagFVOV/view?usp=sharing)**
>
> Google Drive file.

- Note the project is quite large due to the FMOD Plugin being included ~300mb download

I’ve also rebuilt this project to a new URL  
[https://storage.googleapis.com/yutani-world/builds/dev/FMOD\_BUG\_SAFARI/index.html](https://storage.googleapis.com/yutani-world/builds/dev/FMOD_BUG_SAFARI/index.html)

And a gif because everyone loves soundless gifs on an FMOD forum 😃 :  
 ![fmod_bug](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/2e416fafbe530ce543fb889ddd0a9e9be1679668.gif)

Please let me know if I can assist with any other repro steps!

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 5, 2022, 4:06pm UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/5 "2022-04-05T16:06:43Z")

</div>

Just tested on Safari 15.2, MacOS 12.1 and no audio, so I don’t think it is version specific

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 7, 2022, 2:44am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/6 "2022-04-07T02:44:26Z")

</div>

Thank you for sending that over, I can see that banks are not being loaded asynchronously. We have an [Async Loading Script Example](https://fmod.com/resources/documentation-unity?version=2.02&page=examples-async-loading.html) which demonstrates how to achieve this. To use it you need to setup a separate load scene that will load your game’s banks and main scene, in your case “SampleScene”, asynchronously.  
 ![Screen Shot 2022-04-07 at 12.39.00 pm](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/41cdf100125cc6724eb9a48578d7452244a53aa7.png)  
By adding in this load scene to your repro I have found that audio works correctly in Safari- though I found I also had to add calls to mixerSuspend and mixerResume after calling the coroutine, e.g:

```auto
    public void Start()
    {
        StartCoroutine(LoadGameAsync());
        FMODUnity.RuntimeManager.CoreSystem.mixerSuspend();
        FMODUnity.RuntimeManager.CoreSystem.mixerResume();
    }

```

Please have a go implementing this, I will make a task to update the docs to make it clear how to load banks in a load scene for WebGL.

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 7, 2022, 4:45pm UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/7 "2022-04-07T16:45:39Z")

</div>

Firstly, thanks for continuing to look at this, and thanks for the suggestion,

Unfortunately this didn’t work -

I implemented it as described, where there’s an initial loading scene, runs the script as-is copied from the documentation URL, setup the bank references identically to your screen shot, and also re-call the mixer suspend resume code. But unfortunately no difference when building and comparing safari to chrome.

So firstly -

> I found I also had to add calls to mixerSuspend and mixerResume after calling the coroutine

This doesn’t tally with the documentation - as the browsers require a user interaction in order for them to allow audio. With this change I still have to click my “Initialise Audio” button before “Play Sound”.

I’ve updated the project and re-uploaded with your suggested changes at

> **[fmod\_safari\_bug\_v2.zip](https://drive.google.com/file/d/1cQim6dcQCYP0ByYBIieVs7Shhifa8Y0O/view?usp=sharing)**
>
> Google Drive file.

However potentially more helpful I have a side-by-side video (with audio! :D) of the build running in safari and chrome to make it really clear what I’m seeing:

> **[fates\_safari\_bug\_v2.MOV](https://drive.google.com/file/d/1jA864IH6jWkkS_aQh7bDMOSAdJWoXS7E/view?usp=sharing)**
>
> Google Drive file.

Lastly if the asynchronous bank loading **was** important, then my call to _FMODUnity.RuntimeManager.HaveAllBanksLoaded_ in the original code should return false, but it was returning true (as showed in the gif). So I find it hard to understand why the bank loading would have been an issue in the previous version.

Anyway hope there’s enough there to help you continue to investigate.

Thanks!

Matt

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 8, 2022, 6:26am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/8 "2022-04-08T06:26:05Z")

</div>

Strangely it’s working for me- one thing to try, can you please try going into your Safari browser and changing your video auto-play preferences to [_Allow All Auto-Play_](https://support.apple.com/en-au/guide/safari/ibrwe2159f50/15.1/mac/12.0)?

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 8, 2022, 7:14am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/9 "2022-04-08T07:14:41Z")

</div>

Okay good news and bad news 🙂

So the good news is, setting ‘Allow All Auto-Play’ does mean the FMOD project works! The bad news is I don’t think this is a long term workaround.

1. Unity built-in audio works **without** needing to set allow auto-play, I’ve made a fresh unity project, single sound source and button to play. If it is supported with unity built-in, then it should be possible with FMOD? Built-in audio example here:  
[Unity WebGL Player | unity\_builtinaudio\_fmodbug](https://storage.googleapis.com/yutani-world/builds/dev/buitin_fmod_bug/index.html)

2. Autoplay being disabled is the default safari setting, which would mean in order for players to have sound in the game, they would need to follow manual instructions to allow audio autoplay.

Because of both of these, but primarily the fact that it works fine with built in unity audio, is it something you might be able to look at?

And just to say again, really do appreciate that you’re helping diagnose this!

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 8, 2022, 7:28am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/10 "2022-04-08T07:28:25Z")

</div>

And just for completeness 😃 The hosted FMOD and Built-In projects

[FMOD HTML5](https://storage.googleapis.com/yutani-world/builds/dev/FMOD_BUG_SAFARI/index.html)  
[Unity Built-in HTML5](https://storage.googleapis.com/yutani-world/builds/dev/FMOD_BUG_SAFARI/index.html)

And a video comparing these websiutes in Safari with audio initially on auto-play off, and then with auto-play on.

> **[builtin\_vs\_safari.MOV](https://drive.google.com/file/d/16R4orhXN3En_JqNLWsc9N0ucBGk3CgCz/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 11, 2022, 2:35am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/11 "2022-04-11T02:35:40Z")

</div>

Than you for verifying, I agree it is unreasonable to expect users to change their browser settings- especially considering Unity doesn’t have this issue. The Dev team has been updated with this information and will continue investigating the issue, please use the autoplay workaround in the meantime and let us know if you run into any other issues.

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [April 11, 2022, 10:10am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/12 "2022-04-11T10:10:45Z")

</div>

Thanks Jeff much appreciated.

Is there a public bug tracker of any sort for FMOD?

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [April 11, 2022, 11:24pm UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/13 "2022-04-11T23:24:46Z")

</div>

We recommend keeping an eye on our release notes which will be emailed to you when we release an update, and you can subscribe/unsubscribe to them in your [Profile](https://fmod.com/profile#profile).  
Other than that, our [Revision History](https://fmod.com/resources/documentation-api?version=2.02&page=welcome-revision-history.html) page has a list of all the changes for each release.

---

<div class="post-metadata">

**Author:** ![mnewcombe](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mnewcombe/32/3178_2.png) [@mnewcombe](https://qa.fmod.com/u/mnewcombe)\
**Post date:** [May 20, 2022, 10:22am UTC](https://qa.fmod.com/t/bug-2-02-04-webgl-safari-no-audio-in-fmod-but-works-for-other-browsers/18607/14 "2022-05-20T10:22:00Z")

</div>

Thanks Jeff, the fix for this has dropped in 2.02.07 I see! Awesome stuff.
