Sound.playing readonly
Check if the sound is playing, a boolean
value. If the property is true
, the sound is currently playing.
Example
local audio = require "audio"
local sound = audio.Sound("music.mp3")
sound:play()
-- Keep playing the music until it is finished
while sound.playing do
sleep()
end