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 | The name of the device. |
id | userdata | The opaque id of the device. |
Notes
If no device has been set yet, this function returns nil
.
The device doesn't need to be started.