AudioWorkletProcessor is not defined
Author: JSmithOnerCreated Sep 20, 2024Updated Sep 20, 2024
I have an AUdioWorkletProcessor which is a standard WebAudioClass and It tells me it's not defined, just if the extension was from a custom class.
Here is the code
class BypassProcessor extends AudioWorkletProcessor {
process(inputs, outputs) {
const input = inputs[0];
const output = outputs[0];
for (let channel = 0; channel < output.length; ++channel) {
output[channel].set(input[channel]);
}
return true;
}
}
registerProcessor('bypass-processor', BypassProcessor);Source: jshint/jshint