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

Remove use of ASYNCIFY for Emscripten Audio Worklets #863

Open
edubart opened this issue Jun 10, 2024 · 0 comments
Open

Remove use of ASYNCIFY for Emscripten Audio Worklets #863

edubart opened this issue Jun 10, 2024 · 0 comments

Comments

@edubart
Copy link
Contributor

edubart commented Jun 10, 2024

Currently I cannot use Audio Worklets backend for my HTML applications, because it requires compiling with -s ASYNCIFY with Emscripten, and this option degrades the rendering performance of my game on HTML a lot. Would be nice if Miniaudio had an option that allows me to use Audio Worklets without -s ASYNCIFY, the only reason for this option seems to be the use of emscripten_sleep call.

At the moment I'm forced to use ScriptProcessorNode, but it's deprecated giving me warnings and the audio performance is worse. So I am forced to choose bad audio performance (ScriptProcessorNode) or bad rendering performance (-s ASYNCIFY).

What are other ways to workaround this? Would using SDL as audio backend with Emscripten be a workaround to have Audio Worklets under the hood?

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

1 participant