Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

use processorOptions to pass wasm directly #1

Description

@felixroos

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 AudioWorkletNode will very likely create a new instance of DSPProcessor so the clock will be reset...

TLDR: don't do this?

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