We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbb1388 commit 28b0983Copy full SHA for 28b0983
1 file changed
src/sound/BaseSoundManager.js
@@ -309,6 +309,10 @@ var BaseSoundManager = new Class({
309
* @param {number} delta - The delta time elapsed since the last frame.
310
*/
311
update: function (time, delta) {
312
+ if (this.unlocked) {
313
+ this.unlocked = false;
314
+ this.emit('unlocked', this);
315
+ }
316
for (var i = this.sounds.length - 1; i >= 0; i--) {
317
if (this.sounds[i].pendingRemove) {
318
this.sounds.splice(i, 1);
0 commit comments