Source:getDuration

Returns the duration of the Source.

duration = Source:getDuration(unit)

Arguments

NameTypeDefaultDescription
unitTimeUnit'seconds'The unit to return.

Returns

NameTypeDescription
durationnumberThe duration of the Source.

See also