lovr.audio.start

Edit

Starts the active playback or capture device. By default, the playback device is automatically initialized and started the first time a Source is played, but this can be controlled using the t.audio.start flag in lovr.conf.

started, error = lovr.audio.start(type)

Arguments

NameTypeDefaultDescription
typeAudioType'playback' The type of device to start.

Returns

NameTypeDescription
startedboolean Whether the device was successfully started.
errorstring | nil The error message, if any.

Notes

Starting an audio device may fail if:

See also