Lutro - Documentation

Provides an audio interface to play sounds.

Creates a new audio Source from an audio file. Supported file formats are .wav and .ogg.

type can be "static" or "stream"

source =, type)

Plays the specified Source.

Stops playing the specified Source.

To pause one or more sources:

paused_sources =, ...)

To pause all sources:

paused_sources =

Returns the master volume.

volume =

Sets the master volume.

Returns the sources currently being played.

sources =

Gets the current number of simultaneously playing sources.

num_active =