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

local audio = require "audio" local sound = audio.Sound("music.mp3") sound:play() repeat sys.sleep() until sound.ended -- Repeat until the sound has ended