mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Added rate event docs
This commit is contained in:
parent
754c3bc543
commit
371deefbcd
1 changed files with 5 additions and 0 deletions
|
@ -409,6 +409,11 @@ Object.defineProperty(BaseSound.prototype, 'rate', {
|
||||||
set: function (value) {
|
set: function (value) {
|
||||||
this.currentConfig.rate = value;
|
this.currentConfig.rate = value;
|
||||||
this.setRate();
|
this.setRate();
|
||||||
|
/**
|
||||||
|
* @event Phaser.Sound.BaseSound#rate
|
||||||
|
* @param {Phaser.Sound.BaseSound} sound - Reference to the sound that emitted event.
|
||||||
|
* @param {number} value - An updated value of Phaser.Sound.BaseSound#rate property.
|
||||||
|
*/
|
||||||
this.emit('rate', this, value);
|
this.emit('rate', this, value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue