From 8b676cf743d59d587827be5545e7a3d3046bdf9a Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 14 Jan 2018 17:38:59 +0100 Subject: [PATCH] Renamed loop event to looped for emitting event when sound has looped --- src/sound/webaudio/WebAudioSound.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sound/webaudio/WebAudioSound.js b/src/sound/webaudio/WebAudioSound.js index f9f94c209..49fe4bc56 100644 --- a/src/sound/webaudio/WebAudioSound.js +++ b/src/sound/webaudio/WebAudioSound.js @@ -1,6 +1,5 @@ var Class = require('../../utils/Class'); var BaseSound = require('../BaseSound'); - /*! * @author Pavle Goloskokovic (http://prunegames.com) */ @@ -318,7 +317,7 @@ var WebAudioSound = new Class({ rate: this.totalRate }); this.createAndStartLoopBufferSource(); - this.emit('loop', this); + this.emit('looped', this); } }, /**