Skip to content

Commit 7f04143

Browse files
Added fallback to noteOff method call for webkit implementation when stopping buffer source
1 parent cd0c6b2 commit 7f04143

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ var WebAudioSound = new Class({
206206
*/
207207
stopAndRemoveBufferSource: function () {
208208
if (this.source) {
209-
this.source.stop();
209+
(this.source.stop || this.source.noteOff).call(this.source);
210210
this.source = null;
211211
}
212212
this.playTime = 0;

0 commit comments

Comments
 (0)