# WebGL, sound only works after Chrome dev tools opened

**URL:** <https://qa.fmod.com/t/webgl-sound-only-works-after-chrome-dev-tools-opened/17497>\
**Category:** Unity\
**Created:** [July 30, 2021, 4:35pm UTC](https://qa.fmod.com/t/webgl-sound-only-works-after-chrome-dev-tools-opened/17497 "2021-07-30T16:35:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chimpien](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@Chimpien](https://qa.fmod.com/u/Chimpien)\
**Post date:** [July 30, 2021, 4:35pm UTC](https://qa.fmod.com/t/webgl-sound-only-works-after-chrome-dev-tools-opened/17497/1 "2021-07-30T16:35:38Z")

</div>

I have paused my eventinstance on start up, and I have added a button to my project that unpauses and repauses my audio, to get round the browser restrictions on audio starting without interaction. However, this only seems to work when I open Chromes Dev tools console. Any idea why this might be?

My project is here:  
[https://paulbremner.github.io/testUnityApp/](https://paulbremner.github.io/testUnityApp/)

---

<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:** [August 3, 2021, 4:14am UTC](https://qa.fmod.com/t/webgl-sound-only-works-after-chrome-dev-tools-opened/17497/2 "2021-08-03T04:14:40Z")

</div>

Rather than immediately pausing have you tried the [recommended workaround](https://fmod.com/resources/documentation-api?version=2.01&page=platforms-html5.html#safari-and-chrome-browser-user-interaction-requirement-use-for-all-browsers) of calling mixerSuspend and mixerResume on the first button press? i.e

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

if (eventEmitter.IsPlaying())
{
    eventEmitter.Stop();
}
else
{
    eventEmitter.Play();
}

```

If that is still misbehaving, please let me know your Unity and FMOD versions and I’ll look more into it!

---

<div class="post-metadata">

**Author:** ![Chimpien](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@Chimpien](https://qa.fmod.com/u/Chimpien)\
**Post date:** [August 3, 2021, 3:30pm UTC](https://qa.fmod.com/t/webgl-sound-only-works-after-chrome-dev-tools-opened/17497/3 "2021-08-03T15:30:02Z")

</div>

Great, that seems to have fixed it. I thought I tried that fix before and it wasn’t working, but seems to be fine now. I’ve continued with setpaused to start and stop my audio, as that seems to work. We are using an eventistance rather than emitter, so it doesn’t have an isplaying() method, so I rely on a boolean to determine what to setpaused to on the button press. Thanks for your help.
