raylib: [audio] Failing to initialize audio context on web
When trying to run raylib audio example on web, being compiled with latest Emscripten SDK 1.38.19, audio context initialization fails.
This issue appeared after removing the old OpenAL backend from audio.c
module on commit https://github.com/raysan5/raylib/commit/c2aa1fed7b4b75c9bb560ffb9ff6cd8c99d7dd41.
@mackron any idea about it? Maybe I’m missing some compilation flag? Everything seems to compile ok, it just fails on runtime at audio device initialization.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (21 by maintainers)
SDL was added specifically for Emscripten, hence why I’m probably going to be removing it once I get a first-class backend for Emscripten up and running. It works on all platforms, but is set to the lowest priority which means it’ll rarely get used in practice (except with Emscripten of course). SDL supports more backends than mini_al (we’ll catch up!), but from memory I think a lot of them are pretty obscure and, I’m guessing, exist mainly for legacy purposes. Indeed, I think SDL2 actually has an Emscripten-specific backend similar to what I’m planning.