Skip to content Skip to sidebar Skip to footer

My Sounds Are Not Playing In Chrome

I have a small, very basic 3d game that runs in all browsers. But my issue is that when it runs in Chrome I can see in my console messages that the sounds are 'pending' and don't p

Solution 1:

Turn on logging in Chrome (inspect element/console - Preserve log) and see what your code is doing.

Also, you could try enabling/disabling your audio flags just be sure to set them back to default when you are done. chrome://flags/#disable-encrypted-media chrome://flags/#disable-prefixed-encrypted-media/ chrome://flags/#try-supported-channel-layouts chrome://flags/#enable-delay-agnostic-aec chrome://flags/#disable-delay-agnostic-aec chrome://flags/#enable-tab-audio-muting

in chrome and see if that makes a difference.

Just shooting from the hip on the information given though, I would imagine that chrome is delaying your audio javascript execution to the end of the page load. Moving the script to the beginning of the page, or using an async could fix this. Here is a good resource for javascript page load issues: http://www.html5rocks.com/en/tutorials/speed/script-loading/

Post a Comment for "My Sounds Are Not Playing In Chrome"