summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webaudio/the-audio-api/the-audioworklet-interface/processors/dummy-processor-globalthis.js
blob: d1b16cc9aaac4a21f8c428d2a1d583fc07914c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class DummyProcessor extends AudioWorkletProcessor {
  constructor() {
    super();
  }

  process(inputs, outputs, parameters) {
    // Doesn't do anything here.
    return true;
  }
}

globalThis.registerProcessor('dummy-globalthis', DummyProcessor);