The Sound Resume Event.
This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are resumed from a paused state.
Listen to it from a Sound instance using Sound.on('resume', listener)
, i.e.:
var music = this.sound.add('key');
music.on('resume', listener);
music.play();
music.pause();
music.resume();
name | type | description |
---|---|---|
sound | Phaser.Sound.WebAudioSound | Phaser.Sound.HTML5AudioSound |
A reference to the Sound that emitted the event. |