Skip to content

Commit 371deef

Browse files
Added rate event docs
1 parent 754c3bc commit 371deef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/sound/BaseSound.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,11 @@ Object.defineProperty(BaseSound.prototype, 'rate', {
409409
set: function (value) {
410410
this.currentConfig.rate = value;
411411
this.setRate();
412+
/**
413+
* @event Phaser.Sound.BaseSound#rate
414+
* @param {Phaser.Sound.BaseSound} sound - Reference to the sound that emitted event.
415+
* @param {number} value - An updated value of Phaser.Sound.BaseSound#rate property.
416+
*/
412417
this.emit('rate', this, value);
413418
}
414419
});

0 commit comments

Comments
 (0)