lovr.audio.stop

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
stoppedbooleanWhether the device was successfully stopped.

Notes

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

See also