Skip to content

Commit 0645145

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

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
@@ -220,7 +220,7 @@ var WebAudioSound = new Class({
220220
*/
221221
stopAndRemoveLoopBufferSource: function () {
222222
if (this.loopSource) {
223-
this.loopSource.stop();
223+
(this.loopSource.stop || this.loopSource.noteOff).call(this.loopSource);
224224
this.loopSource = null;
225225
}
226226
this.loopTime = 0;

0 commit comments

Comments
 (0)