Skip to content

Commit 1361ac1

Browse files
committed
build
1 parent cf0833b commit 1361ac1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/1.x/ByteBeat.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* [email protected].15, license MIT */
1+
/* [email protected].16, license MIT */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
44
typeof define === 'function' && define.amd ? define(factory) :
@@ -785,7 +785,9 @@ class BeatWorkletProcessor extends AudioWorkletProcessor {
785785
}
786786
787787
process(inputs, outputs, parameters) {
788-
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
788+
if (outputs.length > 0) {
789+
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
790+
}
789791
return true;
790792
}
791793
}

dist/1.x/ByteBeat.module.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* [email protected].15, license MIT */
1+
/* [email protected].16, license MIT */
22
class WrappingStack {
33
constructor(stackSize = 256) {
44
let sp = 0;
@@ -779,7 +779,9 @@ class BeatWorkletProcessor extends AudioWorkletProcessor {
779779
}
780780
781781
process(inputs, outputs, parameters) {
782-
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
782+
if (outputs.length > 0) {
783+
this.byteBeat.process(outputs[0][0].length, outputs[0][0], outputs[0][1]);
784+
}
783785
return true;
784786
}
785787
}

0 commit comments

Comments
 (0)