From 9a4811df321ad5e1121b0f8a7297e7d811d69e4f Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 14 Jan 2018 17:39:10 +0100 Subject: [PATCH] Emitting loop event when sound loop setting value changes --- src/sound/webaudio/WebAudioSound.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sound/webaudio/WebAudioSound.js b/src/sound/webaudio/WebAudioSound.js index 49fe4bc56..e6781f77c 100644 --- a/src/sound/webaudio/WebAudioSound.js +++ b/src/sound/webaudio/WebAudioSound.js @@ -485,6 +485,7 @@ Object.defineProperty(WebAudioSound.prototype, 'loop', { this.createAndStartLoopBufferSource(); } } + this.emit('loop', this, value); } }); module.exports = WebAudioSound;