Renamed loop event to looped for emitting event when sound has looped

This commit is contained in:
Pavle Goloskokovic 2018-01-14 17:38:59 +01:00
parent 846aefd7c1
commit 8b676cf743

View file

@ -1,6 +1,5 @@
var Class = require('../../utils/Class');
var BaseSound = require('../BaseSound');
/*!
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
*/
@ -318,7 +317,7 @@ var WebAudioSound = new Class({
rate: this.totalRate
});
this.createAndStartLoopBufferSource();
this.emit('loop', this);
this.emit('looped', this);
}
},
/**