summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-08 11:59:35 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-08 11:59:35 +0200
commit4013e79a7421b9e6baacc8e34ae7a8ef188b38cb (patch)
tree6e3c3b4b783a5709ca3e85b1a0aa5f9bf3f728c4
parentfc36ac7fea89447682868dc40cc9a818afc51c5c (diff)
downloadsnap-4013e79a7421b9e6baacc8e34ae7a8ef188b38cb.tar.gz
snap-4013e79a7421b9e6baacc8e34ae7a8ef188b38cb.zip
fix yet another note pause bug
-rw-r--r--threads.js5
1 files changed, 4 insertions, 1 deletions
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();
+ }
}
};