fix web processor.js bug wrt stereo input

This commit is contained in:
Stefano D'Angelo 2024-02-01 15:56:22 +01:00
parent 95d6aeb6a0
commit 0c6ca220c4

View File

@ -91,7 +91,7 @@ class Processor extends AudioWorkletProcessor {
this.x[j][k].fill(0);
} else {
for (var k = 0; k < this.x[j].length; k++)
if (k <= input.length)
if (k < input.length)
this.x[j][k].set(input[k].subarray(i, s));
else
this.x[j][k].fill(0);