- Documentation
- Client functions
- getSoundLength
Function
getSoundLength
Returns the sound length in seconds.
Syntax
float getSoundLength(sound theSound)Arguments
theSoundsound- The sound.
Returns
The length or false.
Example
local intro = playSound("audio/intro.mp3")
outputChatBox(("Utwór trwa %.1f s"):format(getSoundLength(intro)))