TannerRogalsky / love.js

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

Audio isn't working under 0.11 #50

Open TannerRogalsky opened 7 years ago

TannerRogalsky commented 7 years ago

Compiling against these changes should provide all of the OpenAL functionality that Love needs but emscripten doesn't share the Web AudioContext used to play audio between workers(threads).

More research is necessary to determine if sharing an AudioContext between web workers is even possible.

TannerRogalsky commented 7 years ago

Update: it is not.

At the time of this writing, Audio processing can only occur in the browser's main thread. This will require modifications to the Love code to perform audio state updates in the main thread.