Source:getDuration

Returns the duration of the Source.

duration = Source:getDuration(unit)

Arguments

NameTypeDefaultDescription
unitTimeUnit'seconds' The unit to return.

Returns

NameTypeDescription
durationnumber The duration of the Source.

See also