mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Implemented setRate method
This commit is contained in:
parent
91f9629ed2
commit
495a79d4bf
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue