Dispatching event when calling stop method

This commit is contained in:
Pavle Goloskokovic 2018-01-03 21:20:40 +01:00
parent 99accdbbd0
commit 3356fc2d92

View file

@ -141,6 +141,7 @@ var WebAudioSound = new Class({
}
// \/\/\/ isPlaying = false, isPaused = false \/\/\/
this.stopAndRemoveBufferSource();
this.events.dispatch(new SoundEvent(this, 'SOUND_STOP'));
return true;
},
/**