You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2025. It is now read-only.
it should work via worklet = new AudioWorkletNode(ac, "dsp-processor", {processorOptions: { webassembly: output.binary });
on second thought, the postMessage is needed anyway for consecutive evaluations, where the AudioWorkletNode should continue to run.. Creating a new AudioWorkletNode will very likely create a new instance of DSPProcessor so the clock will be reset...
https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode#processoroptions
as shown here: https://wam-examples.vidalmazuy.fr/example2-js-cpp/index.html (search processorOptions)
it should work via
worklet = new AudioWorkletNode(ac, "dsp-processor", {processorOptions: { webassembly: output.binary });on second thought, the postMessage is needed anyway for consecutive evaluations, where the AudioWorkletNode should continue to run.. Creating a new
AudioWorkletNodewill very likely create a new instance ofDSPProcessorso the clock will be reset...TLDR: don't do this?