Reading total rate value directly from totalRate property in setRate

This commit is contained in:
Pavle Goloskokovic 2017-12-01 15:41:24 +01:00
parent a3dbb51d3e
commit 66d216af19

View file

@ -156,11 +156,10 @@ var WebAudioSound = new Class({
* @private
*/
setRate: function () {
var totalRate = BaseSound.prototype.setRate.call(this);
BaseSound.prototype.setRate.call(this);
if (this.source) {
this.source.playbackRate.setValueAtTime(totalRate, 0);
this.source.playbackRate.setValueAtTime(this.totalRate, 0);
}
return totalRate;
}
});
/**