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, error = 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. |
| error | string | nil | The error message, if any. |
Notes
Switching devices with lovr.audio.setDevice will stop the existing one.