Relative Content

Tag Archive for web-audio-apiemscripten

multiple audio contexts + multiple worklets resulting in weird distortion / popping & clicking

I have been struggling with trying to get two different audio worklets to be able to process samples. I’ve tried several different approaches and all resulted in a bunch of various errors, but this was what I came up with that does not throw errors, but the result is crackling / distorted audio for ONE of my sources. If I comment out one of the emscripten_start_wasm_audio_worklet_thread_async calls in the constructor function (only create a single worklet node using either contextA OR contextB), then the audio no longer has distortion and sounds fine…