Skip to content

Commit cd0c6b2

Browse files
Added fallback to noteGrainOn method call for webkit implementation when starting loop buffer source
1 parent 00c90eb commit cd0c6b2

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
@@ -175,7 +175,7 @@ var WebAudioSound = new Class({
175175
this.loopTime = when;
176176
this.loopSource = this.createBufferSource();
177177
this.loopSource.playbackRate.setValueAtTime(this.totalRate, 0);
178-
this.loopSource.start(Math.max(0, when), Math.max(0, offset), Math.max(0, duration));
178+
(this.loopSource.start || this.loopSource.noteGrainOn).call(this.loopSource, Math.max(0, when), Math.max(0, offset), Math.max(0, duration));
179179
},
180180
/**
181181
* @private

0 commit comments

Comments
 (0)