Skip to content

Commit 21105ae

Browse files
Fixed bug in PullAudioProcessor js definition.
1 parent a9d79fb commit 21105ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/KristofferStrube.Blazor.WebAudio/wwwroot/KristofferStrube.Blazor.WebAudio.PullAudioProcessor.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656

5757
try {
5858
const count = this.frontIndex - this.backIndex;
59-
this.port.postMessage((count).toString());
60-
if (count != 0) {
59+
if (count >= output.length) {
6160
for (let i = 0; i < output.length; i++) {
6261
let data = this.queue[this.backIndex];
6362
this.backIndex++;

0 commit comments

Comments
 (0)