Skip to content

Commit

Permalink
Fix AudioWokrletNode.port being assigned incorrectly in the latest re…
Browse files Browse the repository at this point in the history
…lease. Fixes #10.
  • Loading branch information
developit committed Aug 31, 2018
1 parent 4382ddc commit 74d787c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ if (typeof AudioWorkletNode !== 'function') {
}

const mc = new MessageChannel();
this.port = mc.port1;
nextPort = mc.port2;
const inst = new processor.Processor(options || {});
nextPort = null;

scriptProcessor.port = mc.port1;
scriptProcessor.processor = processor;
scriptProcessor.instance = inst;
scriptProcessor.onaudioprocess = onAudioProcess;
Expand Down

0 comments on commit 74d787c

Please sign in to comment.