mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Dispatching event when global volume value changes
This commit is contained in:
parent
3967a111a4
commit
3b5289a733
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', {
|
|||
},
|
||||
set: function (value) {
|
||||
this.masterVolumeNode.gain.setValueAtTime(value, 0);
|
||||
this.events.dispatch(new SoundValueEvent(this, 'SOUND_VOLUME', value));
|
||||
}
|
||||
});
|
||||
module.exports = WebAudioSoundManager;
|
||||
|
|
Loading…
Add table
Reference in a new issue