Retrieves information on a recording 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. |
BASS_ERROR_DX | A sufficient version of DirectX is not installed. |
Platform-specific
Recording support requires DirectX 5 (or above) on Windows. On Linux, a "Default" device is hardcoded to device number 0, which uses the default input set in the ALSA config.
Examples
int defDevice = -1; BASS_DEVICEINFO info; for (int n = 0; (info = Bass.BASS_RecordGetDeviceInfo(n)) != null; n++) { if (info.IsDefault) { defDevice = n; break; } }
See Also