TannerRogalsky / love.js

LÖVE ported to the web using Emscripten
MIT License
493 stars 53 forks source link

Music only plays while you are playing #41

Closed bonez001 closed 8 years ago

bonez001 commented 8 years ago

I made a simple game and the audio only plays while I'm at the game in the browser. Is there something I am missing? Other triggerred sound -e.g. by clicking- is still ok.

TannerRogalsky commented 8 years ago

The audio implementation requires JavaScript to work. Many browsers suspend JavaScript execution when the tab or window is not focused. This happens at the browser level and is beyond our control.