Source code

Revision control

Copy as Markdown

Other Tools

class WasmProcessWorkletProcessor extends AudioWorkletProcessor {
constructor(...args) {
super(...args);
this.port.onmessage = e => {
// Let's send it back.
this.port.postMessage(e.data);
};
}
process() {
// Do nothing, output silence
return true;
}
}
registerProcessor("wasm", WasmProcessWorkletProcessor);