Skip to content

Commit 97441f3

Browse files
Adding initial rate update to help calculate seek
1 parent ad68701 commit 97441f3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ var WebAudioSound = new Class({
8484
var seek = this.currentConfig.seek;
8585
var offset = (this.currentMarker ? this.currentMarker.start : 0) + seek;
8686
var duration = this.duration - seek;
87+
this.rateUpdates.push({
88+
time: 0,
89+
rate: 1
90+
});
8791
this.createAndStartBufferSource(offset, duration);
8892
this.startTime = this.manager.context.currentTime - seek;
8993
this.pausedTime = 0;

0 commit comments

Comments
 (0)