summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
Diffstat (limited to 'threads.js')
-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();
+ }
}
};