Skip to content

Commit 50a87d8

Browse files
Added rate event docs
1 parent e144505 commit 50a87d8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/sound/BaseSoundManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ Object.defineProperty(BaseSoundManager.prototype, 'rate', {
386386
this.forEachActiveSound(function (sound) {
387387
sound.setRate();
388388
});
389+
/**
390+
* @event Phaser.Sound.BaseSoundManager#rate
391+
* @param {Phaser.Sound.BaseSoundManager} soundManager - Reference to the sound manager that emitted event.
392+
* @param {number} value - An updated value of Phaser.Sound.BaseSoundManager#rate property.
393+
*/
389394
this.emit('rate', this, value);
390395
}
391396
});

0 commit comments

Comments
 (0)