lovr.audio.getDevice
EditReturns information about the active playback or capture device.
name, id = lovr.audio.getDevice(type)Arguments
| Name | Type | Default | Description |
| type | AudioType | 'playback' | The type of device to query. |
Returns
| Name | Type | Description |
| name | string | nil |
The name of the device, or nil if no device is set.
|
| id | userdata | nil |
The opaque id of the device, or nil if no device is set.
|
Notes
If no device has been set yet, this function returns nil.
The device doesn't need to be started.