# \[HTML5\] Chrome mobile - distorting sounds

**URL:** <https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154>\
**Category:** FMOD Engine\
**Created:** [October 21, 2019, 8:33pm UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154 "2019-10-21T20:33:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![floodgames](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@floodgames](https://qa.fmod.com/u/floodgames)\
**Post date:** [October 21, 2019, 8:33pm UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154/1 "2019-10-21T20:33:22Z")

</div>

I’m testing the examples provided via the HTML5 download. Thank you!

When I serve them via a web server, any _android chrome_ that connects to it seems to play distorted sounds unfortunately. Firefox seems ok.

Ps. please host the web audio on this website again please

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [October 29, 2019, 11:40pm UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154/2 "2019-10-29T23:40:06Z")

</div>

Read over the [Performance and Memory](https://www.fmod.com/resources/documentation-api?version=2.0&page=platforms-html5.html#performance-and-memory) docs for HTML5, some of the information in there should help.

---

<div class="post-metadata">

**Author:** ![floodgames](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@floodgames](https://qa.fmod.com/u/floodgames)\
**Post date:** [November 7, 2019, 7:38pm UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154/3 "2019-11-07T19:38:47Z")

</div>

Thanks for the response! Unfortunately it doesn’t seem to work.

Summary:

- Stuttering on Chrome android only (firefox android OK)
- playsound.js api/core/examples
- tried different DSPBuffer
- how to set lower hz? (always 48000hz)

Other ideas?  
Update: Most likely performance related - how to set the lowest cpu/quality possible? (although it only goes to max 2%cpu usage…)

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 11, 2019, 4:23am UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154/4 "2019-11-11T04:23:57Z")

</div>

You can set the samplerate using [System::setSoftwareFormat](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_setsoftwareformat).

What version of FMOD are you using?

---

<div class="post-metadata">

**Author:** ![floodgames](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@floodgames](https://qa.fmod.com/u/floodgames)\
**Post date:** [November 11, 2019, 10:00am UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154/5 "2019-11-11T10:00:35Z")

</div>

Thanks. Changing the samplerate did not fix it.

We’re using the HTML download -\> “fmodstudioapi20005html5”

If you host fmod html audio on this website again (or try yourself on a local webserver and access the ip by smartphone) I’m sure you will encounter it too.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [November 12, 2019, 12:14am UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154/6 "2019-11-12T00:14:15Z")

</div>

So far I have only been able to reproduce this on devices running Android 8.0 and older, is this the same for you?

By changing the DSP buffer size to 4096 x 2 I was able to solve the distortion on one of the devices, but the other still had a small amount of distortion. This is likely due to the low latency mode not being supported on that device. The only solution in that case is to have a switch in the app to make the latency really high/extra large for bad devices.

---

<div class="post-metadata">

**Author:** ![floodgames](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@floodgames](https://qa.fmod.com/u/floodgames)\
**Post date:** [November 12, 2019, 1:48pm UTC](https://qa.fmod.com/t/html5-chrome-mobile-distorting-sounds/15154/7 "2019-11-12T13:48:10Z")

</div>

Thanks. The DSP buffer size of “4096 x 2” did the trick. Seems good!
