Skip to content

Commit 1e423a7

Browse files
Added volume event docs
1 parent f30fb5f commit 1e423a7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', {
168168
},
169169
set: function (value) {
170170
this.masterVolumeNode.gain.setValueAtTime(value, 0);
171+
/**
172+
* @event Phaser.Sound.WebAudioSoundManager#volume
173+
* @param {Phaser.Sound.WebAudioSoundManager} soundManager - Reference to the sound manager that emitted event.
174+
* @param {number} value - An updated value of Phaser.Sound.WebAudioSoundManager#volume property.
175+
*/
171176
this.emit('volume', this, value);
172177
}
173178
});

0 commit comments

Comments
 (0)