# Webgl audio distortion/crackling

**URL:** <https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043>\
**Category:** Unity\
**Tags:** unity\
**Created:** [March 30, 2023, 5:19pm UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043 "2023-03-30T17:19:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SwingWren](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/swingwren/32/4797_2.png) [@SwingWren](https://qa.fmod.com/u/SwingWren)\
**Post date:** [March 30, 2023, 5:19pm UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/1 "2023-03-30T17:19:03Z")

</div>

Hello!  
I’ve been switching to fmod in our project and it works fine but in webgl a very bad sound cracking/poping effect is heard.

I’ve tried setting the quality of audio compression to 100% but it doesn’t improve.

using Unity 2022.2.11  
using Fmod 2.02.11

What could be the cause?

> **[demo-audio](https://www.whyp.it/tracks/84357/demo-audio?token=ZI3fr)**
>
> Listen to this track for free on Whyp.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [March 31, 2023, 3:23am UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/2 "2023-03-31T03:23:32Z")

</div>

Hi,

This may be related to an issue here: [Net Stream hiccups at a regular rate](https://qa.fmod.com/t/net-stream-hiccups-at-a-regular-rate/19783), which was resolved in our 2.02.13 update. Could you try updating your integration and lt me know if that helps!

---

<div class="post-metadata">

**Author:** ![SwingWren](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/swingwren/32/4797_2.png) [@SwingWren](https://qa.fmod.com/u/SwingWren)\
**Post date:** [March 31, 2023, 9:10am UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/3 "2023-03-31T09:10:07Z")

</div>

I updated and rebuilt and It doesn’t resolve the issue. A bit more digging revealed its only happening in my computer so far and only in chromium browsers (Opera, Edge, Chrome). Even the [Unity WebGL Player | Unity HTML Demo](https://fmod.com/assets/html5/js_unity/demo.html) example has the same issue with distortion and crackling.

I can provide more info if necessary to be able to dig up the issue

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 4, 2023, 12:31am UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/4 "2023-04-04T00:31:48Z")

</div>

Hi,

Thank you for sharing that information, I will link to another issue that might have a solution to the problem here: [Audio cracking on web depending on server? - #2 by jeff\_fmod](https://qa.fmod.com/t/audio-cracking-on-web-depending-on-server/19520/2).

In the meantime, any other information you are able to provide would be useful.

---

<div class="post-metadata">

**Author:** ![SwingWren](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/swingwren/32/4797_2.png) [@SwingWren](https://qa.fmod.com/u/SwingWren)\
**Post date:** [April 4, 2023, 8:22am UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/5 "2023-04-04T08:22:17Z")

</div>

Tried in different servers and performance settings and the issue persists. I think now I have narrowed the issue even more, it only happens when using any headphone jack in the computer. I assume its a driver/hardware problem in conjunction with something that Fmod and chromium are doing together.  
At this point I consider the issue so specific and narrow that I don’t think its worth it to invest more time on it.

Thank you for the help.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 4, 2023, 11:14pm UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/6 "2023-04-04T23:14:42Z")

</div>

Hi,

Thank you for sharing your findings.

---

<div class="post-metadata">

**Author:** ![wengyhongwork](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@wengyhongwork](https://qa.fmod.com/u/wengyhongwork)\
**Post date:** [July 4, 2023, 3:31am UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/7 "2023-07-04T03:31:53Z")

</div>

Hello SwingWren,

May I know what is the solution you chose in the end? Thanks

---

<div class="post-metadata">

**Author:** ![SwingWren](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/swingwren/32/4797_2.png) [@SwingWren](https://qa.fmod.com/u/SwingWren)\
**Post date:** [July 4, 2023, 8:49am UTC](https://qa.fmod.com/t/webgl-audio-distortion-crackling/20043/8 "2023-07-04T08:49:55Z")

</div>

As the issue for me it was related to the audio jack I just stop using it
