From e2191d8f6ea72077ec5595dc6570a9804b8cbd89 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Tue, 5 Aug 2014 12:10:20 +0200 Subject: fix another sound pause bug --- threads.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 354d002..7e87614 100644 --- a/threads.js +++ b/threads.js @@ -418,11 +418,17 @@ Process.prototype.pause = function () { if (this.context && this.context.startTime) { this.pauseOffset = Date.now() - this.context.startTime; } + if (this.context.activeNote) { + this.context.activeNote.stop(); + } }; Process.prototype.resume = function () { this.isPaused = false; this.pauseOffset = null; + if (this.context.activeNote) { + this.context.activeNote.play(); + } }; Process.prototype.pauseStep = function () { -- cgit v1.3.1