summaryrefslogtreecommitdiffstats
path: root/dom/worklet/tests/worklet_audioWorklet_options.js
blob: eb7a7042341a29e290e0a17a3cfc308382ecd654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class OptionsProcessWorkletProcessor extends AudioWorkletProcessor {
  constructor(...args) {
    super(...args);
    this.port.postMessage(args[0].processorOptions);
  }

  process(inputs, outputs, parameters) {
    return true;
  }
}

registerProcessor("options", OptionsProcessWorkletProcessor);