firewheel-web-audio 0.4.0

A multi-threaded Web Audio backend for Firewheel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
registerProcessor(
  "WasmProcessor",
  class WasmProcessor extends AudioWorkletProcessor {
    constructor(options) {
      super();
      let [module, memory, handle] = options.processorOptions;
      bindgen.initSync(module, memory);
      this.processor = bindgen.ProcessorHost.unpack(handle);
    }

    process(inputs, outputs) {
      return this.processor.process(inputs, outputs, currentTime);
    }
  },
);