Skip to content

Commit c1688dd

Browse files
Setting loopTime to loop source start call when parameter value when creating it
1 parent 54de230 commit c1688dd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ var WebAudioSound = new Class({
166166
var when = this.getLoopTime();
167167
var offset = this.currentMarker ? this.currentMarker.start : 0;
168168
var duration = this.duration;
169+
this.loopTime = when;
170+
console.log(this.key + ' loopTime: ' + this.loopTime);
171+
console.log(this.key + ' delta: ' + (this.loopTime - this.startTime));
169172
this.loopSource = this.createBufferSource();
170173
this.loopSource.playbackRate.setValueAtTime(this.totalRate, 0);
171174
this.loopSource.start(Math.max(0, when), Math.max(0, offset), Math.max(0, duration));

0 commit comments

Comments
 (0)