HTML5 Sound Crackling - All browser

Anyone has any problem with audio quality on HTML5 build?

I tried both .wav and .ogg file
I made sure it’s 16bit for wav

I used audacity to convert.

Audio is fine on other builds

Please test these games and see if they crackle for you

https://www.solitaire.io/faerie-solitaire-remastered/ uses builtin audio (old version before threaded playback)

https://www.solitaire.io/faerie-solitaire-harvest/ uses FMOD

1 Like

Hi,
The old version crackles more (like my game)
FMOD sounds 99% improved, but still crackles.

On FireFox:

  • FMOD has no crackles.
  • Remastered sound crackles.

Wow,
Only happens on my desktop PC.


image
image

Wow,
Enabling hardware acceleration cured this on chrome.

1 Like

Good to know! It may be a good thing to include in text of your game / below it. I’ll add it to QA for my games too.

So… If you disabled hardware acceleration for some reason (not the default setting), then your game will render at a snail’s pace FPS, meaning the sound engine (FMOD or built-in) gets called way less often than it needs to and its buffers will under-run. This is a limitation of the JS platform, where you can’t have real multi-threading.

I’m not sure browsers with hardware acceleration off are something that you should support, since the game will likely run slow/not at all on them anyway.

4 Likes

Not related to Defold. But Chrome Crash Handler had an issue few revisions back where it bugged out and throttled the GPU. The only solution before the fix was to disable hardware acceleration.

It’s a human thing to forget (garbage collector). I still have developer-mode on my Android even though I haven’t touched Flutter for over 3 months.

Naw, it would be great use of time to know solution to fix this on FireFox. Sound still crackles.
Bare in mind, I am only 1.5 months old in Defold.

1 Like