Skip to content

Commit 3344fc8

Browse files
Added detune event docs
1 parent 371deef commit 3344fc8

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
@@ -430,6 +430,11 @@ Object.defineProperty(BaseSound.prototype, 'detune', {
430430
set: function (value) {
431431
this.currentConfig.detune = value;
432432
this.setRate();
433+
/**
434+
* @event Phaser.Sound.BaseSound#detune
435+
* @param {Phaser.Sound.BaseSound} sound - Reference to the sound that emitted event.
436+
* @param {number} value - An updated value of Phaser.Sound.BaseSound#detune property.
437+
*/
433438
this.emit('detune', this, value);
434439
}
435440
});

0 commit comments

Comments
 (0)