Skip to content

Commit 09b80d6

Browse files
committed
1 parent 2f5c455 commit 09b80d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ByteBeatNode.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ class BeatWorkletProcessor extends AudioWorkletProcessor {
5353
}
5454
5555
process(inputs, outputs, parameters) {
56-
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
56+
if (outputs.length > 0) {
57+
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
58+
}
5759
return true;
5860
}
5961
}

0 commit comments

Comments
 (0)