Dispatching event when sound volume value changes

This commit is contained in:
Pavle Goloskokovic 2018-01-03 21:26:15 +01:00
parent 0c70ae236e
commit e0591df9fc

View file

@ -349,6 +349,7 @@ Object.defineProperty(WebAudioSound.prototype, 'volume', {
set: function (value) {
this.currentConfig.volume = value;
this.volumeNode.gain.setValueAtTime(value, 0);
this.events.dispatch(new SoundValueEvent(this, 'SOUND_VOLUME', value));
}
});
/**