lovr.audio.stop
EditStops the active playback or capture device. This may fail if:
- The device is not started
- No device was initialized with
lovr.audio.setDevice
stopped = lovr.audio.stop(type)
Arguments
Name | Type | Default | Description |
type | AudioType | 'playback' | The type of device to stop. |
Returns
Name | Type | Description |
stopped | boolean | Whether the device was successfully stopped. |
Notes
Switching devices with lovr.audio.setDevice
will stop the existing one.
See also
lovr.audio.getDevices
lovr.audio.setDevice
lovr.audio.start
lovr.audio.isStarted
lovr.audio