diff --git a/dist/1.x/ByteBeat.js b/dist/1.x/ByteBeat.js index 016ea45..be25032 100644 --- a/dist/1.x/ByteBeat.js +++ b/dist/1.x/ByteBeat.js @@ -1,4 +1,4 @@ -/* ByteBeat@1.0.15, license MIT */ +/* ByteBeat@1.0.16, license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : @@ -785,7 +785,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; } } diff --git a/dist/1.x/ByteBeat.module.js b/dist/1.x/ByteBeat.module.js index db4d53f..d67aa04 100644 --- a/dist/1.x/ByteBeat.module.js +++ b/dist/1.x/ByteBeat.module.js @@ -1,4 +1,4 @@ -/* ByteBeat@1.0.15, license MIT */ +/* ByteBeat@1.0.16, license MIT */ class WrappingStack { constructor(stackSize = 256) { let sp = 0; @@ -779,7 +779,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; } }