Skip to content

Commit 495a79d

Browse files
Implemented setRate method
1 parent 91f9629 commit 495a79d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ var HTML5AudioSound = new Class({
7979
if (this.audio) {
8080
this.audio.volume = this.currentConfig.volume * this.manager.volume;
8181
}
82+
},
83+
setRate: function () {
84+
BaseSound.prototype.setRate.call(this);
85+
if (this.audio) {
86+
this.audio.playbackRate = this.totalRate;
87+
}
8288
}
8389
});
8490
module.exports = HTML5AudioSound;

0 commit comments

Comments
 (0)