lovr.audio.stop

Edit

Stops the active playback or capture device. This may fail if:

stopped = lovr.audio.stop(type)

Arguments

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

Returns

NameTypeDescription
stoppedboolean Whether the device was successfully stopped.

Notes

Switching devices with lovr.audio.setDevice will stop the existing one.

See also