Skip to content

Commit 3b5289a

Browse files
Dispatching event when global volume value changes
1 parent 3967a11 commit 3b5289a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', {
112112
},
113113
set: function (value) {
114114
this.masterVolumeNode.gain.setValueAtTime(value, 0);
115+
this.events.dispatch(new SoundValueEvent(this, 'SOUND_VOLUME', value));
115116
}
116117
});
117118
module.exports = WebAudioSoundManager;

0 commit comments

Comments
 (0)