Lutro - Documentation

Source (type)

A Source represents audio you can play back.

Source:setLooping

Then set to true, the Source will be played continuously.

Source:isLooping

Returns whether the Source is looping.

Source:isStopped

Returns whether the Source is stopped.

Source:pause

Pauses the Source.

Source:isPaused

Returns whether the Source is paused.

Source:isPlaying

Returns whether the Source is playing.

Source:setVolume

Sets the volume of this Source.

Source:getVolume

Returns the volume of this Source.

Source:seek

Jumps to a given position in the Source.

Source:tell

Returns the current position in the source.

Source:setPitch

Sets the pitch of the source.

Source:getPitch

Returns the pitch of the source.