Retrieves information on an output device.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- device
- Type: SystemInt32
The device to get the information of... 0 = first.
Return Value
Type: BASS_DEVICEINFOIf successful, then an instance of the BASS_DEVICEINFO class is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_DEVICE | The device number specified is invalid. |
Platform-specific
On Linux, a "Default" device is hardcoded to device number 1, which uses the default output set in the ALSA config, and the real devices start at number 2.
Examples
int defDevice = -1; BASS_DEVICEINFO info; for (int n = 0; (info = Bass.BASS_GetDeviceInfo(n)) != null; n++) { if (info.IsDefault) { defDevice = n; break; } }
See Also