Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not initialize SDL2, No audio context available #500

Open
comods opened this issue Jan 3, 2025 · 2 comments
Open

Could not initialize SDL2, No audio context available #500

comods opened this issue Jan 3, 2025 · 2 comments
Milestone

Comments

@comods
Copy link

comods commented Jan 3, 2025

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.

@DustinBrett
Copy link
Owner

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

@DustinBrett DustinBrett added this to the P1 milestone Jan 3, 2025
@comods
Copy link
Author

comods commented Jan 3, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants