mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +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
|
* @private
|
||||||
*/
|
*/
|
||||||
setRate: function () {
|
setRate: function () {
|
||||||
var totalRate = BaseSound.prototype.setRate.call(this);
|
BaseSound.prototype.setRate.call(this);
|
||||||
if (this.source) {
|
if (this.source) {
|
||||||
this.source.playbackRate.setValueAtTime(totalRate, 0);
|
this.source.playbackRate.setValueAtTime(this.totalRate, 0);
|
||||||
}
|
}
|
||||||
return totalRate;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue