From 4013e79a7421b9e6baacc8e34ae7a8ef188b38cb Mon Sep 17 00:00:00 2001 From: Gubolin Date: Fri, 8 Aug 2014 11:59:35 +0200 Subject: fix yet another note pause bug --- threads.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index fd75e3d..77ad720 100644 --- a/threads.js +++ b/threads.js @@ -427,7 +427,10 @@ Process.prototype.resume = function () { this.isPaused = false; this.pauseOffset = null; if (this.context.activeNote) { - this.context.activeNote.play(); + if (this.context.activeNote.oscillator === null) { + // prevents Note from resuming twice + this.context.activeNote.play(); + } } }; -- cgit v1.3.1