daedalOS icon indicating copy to clipboard operation
daedalOS copied to clipboard

Could not initialize SDL2, No audio context available

Open comods opened this issue 1 year ago • 2 comments

Using DustinBrett.com on Android in Tor (Android Firefox ESR) 115.2.1

Trying to open Space Cadet

Could not initialize SDL2
No audio context available

This is something Unity crashes on as well, but is a solvable problem with a shim/polyfill.

An OfflineAudioContext shim might be able to shim AudioContext, allowing data processing but not playback.

Maybe an old version of https://github.com/chrisguttandin/standardized-audio-context might work.

comods avatar Jan 03 '25 07:01 comods

Very cool idea about the shim, thanks for suggesting that and I will look into recreating the bug and trying the fix.

DustinBrett avatar Jan 03 '25 07:01 DustinBrett

I do not know if this rust crate could be compiled into a wasm shim: https://crates.io/crates/web-audio-api

See: https://github.com/ircam-ismm/node-web-audio-api

comods avatar Jan 03 '25 07:01 comods