SoundData:getDuration

Returns the duration of the sound data in seconds.

duration = SoundData:getDuration()

Arguments

None

Returns

NameTypeDescription
durationnumberThe duration of the sound.

See also