Implemented setRate method

This commit is contained in:
Pavle Goloskokovic 2018-01-11 17:51:58 +01:00
parent 91f9629ed2
commit 495a79d4bf

View file

@ -79,6 +79,12 @@ var HTML5AudioSound = new Class({
if (this.audio) {
this.audio.volume = this.currentConfig.volume * this.manager.volume;
}
},
setRate: function () {
BaseSound.prototype.setRate.call(this);
if (this.audio) {
this.audio.playbackRate = this.totalRate;
}
}
});
module.exports = HTML5AudioSound;