mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Reading total rate value directly from totalRate property in setRate
This commit is contained in:
parent
a3dbb51d3e
commit
66d216af19
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue