Sound.ended
readonly |
Check if the sound has ended, a boolean value. When the property is true, the end of the sound have been reached.
Example
--! luart-extensions
import audio
local sound = audio.Sound("music.mp3")
sound:play()
repeat
sleep()
until sound.ended -- Repeat until the sound has ended