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

#1

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

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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

1 Like