summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-05 12:10:20 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-05 12:12:07 +0200
commite2191d8f6ea72077ec5595dc6570a9804b8cbd89 (patch)
treea0e75b5e5774b28d1acf605cb8388389f50bdb9d
parentcd6d755f00b4633e68d63fb2e2b1910ffa03b32c (diff)
downloadsnap-e2191d8f6ea72077ec5595dc6570a9804b8cbd89.tar.gz
snap-e2191d8f6ea72077ec5595dc6570a9804b8cbd89.zip
fix another sound pause bug
-rw-r--r--threads.js6
1 files changed, 6 insertions, 0 deletions
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 () {