public static interface AudioPlayer.Listener
Modifier and Type | Method and Description |
---|---|
void |
onBeginPlaying(AudioPlayer player,
Audio audio)
Called when the player will begin playing the designated Audio item.
|
void |
onFinishedPlaying(AudioPlayer player,
Audio audio)
Called when the AudioPlayer finishes playing the designated SKAudio.
|
void onBeginPlaying(AudioPlayer player, Audio audio)
player
- AudioPlayer that is playing the Audio.audio
- Audio that has started playing.void onFinishedPlaying(AudioPlayer player, Audio audio)
player
- AudioPlayer that was playing the Audio.audio
- Audio that has finished playing.