diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-08-05 12:10:20 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-08-05 12:12:07 +0200 |
| commit | e2191d8f6ea72077ec5595dc6570a9804b8cbd89 (patch) | |
| tree | a0e75b5e5774b28d1acf605cb8388389f50bdb9d | |
| parent | cd6d755f00b4633e68d63fb2e2b1910ffa03b32c (diff) | |
| download | snap-e2191d8f6ea72077ec5595dc6570a9804b8cbd89.tar.gz snap-e2191d8f6ea72077ec5595dc6570a9804b8cbd89.zip | |
fix another sound pause bug
| -rw-r--r-- | threads.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 () { |
