mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Added volume event docs
This commit is contained in:
parent
f30fb5f9ff
commit
1e423a7ff6
1 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,11 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', {
|
|||
},
|
||||
set: function (value) {
|
||||
this.masterVolumeNode.gain.setValueAtTime(value, 0);
|
||||
/**
|
||||
* @event Phaser.Sound.WebAudioSoundManager#volume
|
||||
* @param {Phaser.Sound.WebAudioSoundManager} soundManager - Reference to the sound manager that emitted event.
|
||||
* @param {number} value - An updated value of Phaser.Sound.WebAudioSoundManager#volume property.
|
||||
*/
|
||||
this.emit('volume', this, value);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue