From 1361ac1accb9a4d3661b889715ab4bf396399050 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Tue, 13 Feb 2024 11:10:38 -0800 Subject: [PATCH] build --- dist/1.x/ByteBeat.js | 6 ++++-- dist/1.x/ByteBeat.module.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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; } }