How do I get sound to work in html? (SOLVED)

Sound only works when I build the game in the application, how do I get it working on html?

Hi @ar432!
Do you get any output in the browser console?

Yup I got the game to run and it works fine, I think its something to do with the second audio file I’ve added recently. When I debug the code it pops up with this error:
ERROR:SOUND: Sounds with rate higher than sample-rate not supported (48000 hz > 44100 hz).
Anyway to lower sample rate?

Thanks for the quick reply :smile: @Mathias_Westerdahl

It’s working now! Lowered sample rate and it works, thank you anyways :sunglasses:

1 Like