Set a callback function that is invoked when the end of the audio is reached (note if looping it will be invoked each time the end of audio is reached)
Returns Function
Set a callback function that is invoked when the end of the audio is reached (note if looping it will be invoked each time the end of audio is reached)
Parameters
callback: Function
Function to invoke
Returns void
onStop
get onStop(): Function
set onStop(callback: Function): void
Set a callback function that is invoked whenever the audio stops. This occurs when the audio is explicitly stopped or the end of the audio is reached (when not looping)
Returns Function
Set a callback function that is invoked whenever the audio stops. This occurs when the audio is explicitly stopped or the end of the audio is reached (when not looping)
AudioClip is an instance of audio playback. It is created by AudioManager.play() and should not be created explicitly