Resetting rate updates on sound loop

This commit is contained in:
Pavle Goloskokovic 2017-12-22 15:45:28 +01:00
parent 5635c04da0
commit c569aabc73

View file

@ -248,6 +248,11 @@ var WebAudioSound = new Class({
this.source = this.loopSource;
this.loopSource = null;
this.playTime = this.startTime = this.loopTime;
this.rateUpdates.length = 0;
this.rateUpdates.push({
time: 0,
rate: this.totalRate
});
this.createAndStartLoopBufferSource();
}
},