Skip to content

Commit 89fce91

Browse files
Dispatching event when sound ends
1 parent 3356fc2 commit 89fce91

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ var WebAudioSound = new Class({
245245
if (this.hasEnded) {
246246
this.hasEnded = false;
247247
this.stop();
248+
this.events.dispatch(new SoundEvent(this, 'SOUND_ENDED'));
248249
}
249250
else if (this.hasLooped) {
250251
this.hasLooped = false;

0 commit comments

Comments
 (0)