Emitting loop event when sound loop setting value changes

This commit is contained in:
Pavle Goloskokovic 2018-01-14 17:39:10 +01:00
parent 8b676cf743
commit 9a4811df32

View file

@ -485,6 +485,7 @@ Object.defineProperty(WebAudioSound.prototype, 'loop', {
this.createAndStartLoopBufferSource();
}
}
this.emit('loop', this, value);
}
});
module.exports = WebAudioSound;