From 9bb138f40df2e75ea341003e3c0c05942792872a Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 12 Jan 2018 17:26:16 +0100 Subject: [PATCH] Dispatching event when setting HTML5AudioSoundManager volume property --- src/sound/html5/HTML5AudioSoundManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index eb837de32..7aa5d5446 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -102,6 +102,7 @@ Object.defineProperty(HTML5AudioSoundManager.prototype, 'volume', { this.forEachActiveSound(function (sound) { sound.setVolume(); }); + this.events.dispatch(new SoundValueEvent(this, 'SOUND_VOLUME', value)); } }); module.exports = HTML5AudioSoundManager;