diff --git a/htdocs/lib/AudioProcessor.js b/htdocs/lib/AudioProcessor.js index 7ac76c5..a3e9abf 100644 --- a/htdocs/lib/AudioProcessor.js +++ b/htdocs/lib/AudioProcessor.js @@ -33,7 +33,10 @@ class OwrxAudioProcessor extends AudioWorkletProcessor { this.port.start(); } process(inputs, outputs) { - if (this.remaining() < 128) return true; + if (this.remaining() < 128) { + outputs[0].forEach(output => output.fill(0)); + return true; + } outputs[0].forEach((output) => { output.set(this.audioBuffer.subarray(this.outPos, this.outPos + 128)); });