Skip to content

Commit

Permalink
Workaround chrome bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 13, 2024
1 parent 2f5c455 commit 09b80d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ByteBeatNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class BeatWorkletProcessor extends AudioWorkletProcessor {
}
process(inputs, outputs, parameters) {
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
if (outputs.length > 0) {
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
}
return true;
}
}
Expand Down

0 comments on commit 09b80d6

Please sign in to comment.