Const
The Sound Destroy Event.
This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are destroyed, either directly or via a Sound Manager.
Listen to it from a Sound instance using Sound.on('destroy', listener), i.e.:
Sound.on('destroy', listener)
var music = this.sound.add('key');music.on('destroy', listener);music.destroy(); Copy
var music = this.sound.add('key');music.on('destroy', listener);music.destroy();
The Sound Destroy Event.
This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are destroyed, either directly or via a Sound Manager.
Listen to it from a Sound instance using
Sound.on('destroy', listener), i.e.: