Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
605 stars 27 forks source link

Documentation regarding audio playback #60

Open ArseAssassin opened 2 years ago

ArseAssassin commented 2 years ago

First of all thank you for this library! For the most part, everything works much smoother than I would've expected possible running Love2d in the browser.

I've managed to get my game working reasonably well, but am having trouble understanding some audio related issues. I've managed to work around most of it, but it seems like there's a limit on the number of sources that can be played simultaneously. Can someone confirm this? It'd also be helpful to understand which browser API is used to play back the audio as I'm sure there are browser-specific limitations no matter how it's implemented.

I'd gladly submit a pull request updating the docs if I could figure this out.

Davidobot commented 2 years ago

The audio in the compat version was fixed somewhat in the latest commit.

chainsawriot commented 2 weeks ago

One thing I found today: Even with -c, love.audio.stop() will freeze the execution of the game.

Version: 11.4.1 LOVE version: 11.5