Dispatching event when calling play method

This commit is contained in:
Pavle Goloskokovic 2018-01-03 21:19:44 +01:00
parent a664714c12
commit 17985a0147

View file

@ -107,6 +107,7 @@ var WebAudioSound = new Class({
// \/\/\/ isPlaying = true, isPaused = false \/\/\/
this.stopAndRemoveBufferSource();
this.createAndStartBufferSource();
this.events.dispatch(new SoundEvent(this, 'SOUND_PLAY'));
return this;
},
pause: function () {