Source:tell

Returns the current playback position of the Source.

position = Source:tell(unit)

Arguments

NameTypeDefaultDescription
unitTimeUnit'seconds'The unit to return.

Returns

NameTypeDescription
positionnumberThe current playback position.

Notes

This function can not be used on a Source backed by a raw AudioStream.

See also