Skip to content

Remove use of ASYNCIFY for Emscripten Audio Worklets #863

@edubart

Description

@edubart

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions