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?
Currently I cannot use Audio Worklets backend for my HTML applications, because it requires compiling with
-s ASYNCIFYwith 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 ofemscripten_sleepcall.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?