Retrieves information on a recording device.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.2
Syntax
Parameters
- device
- Type: SystemInt32
The device to get the information of... 0 = first. - info
- Type: Un4seen.BassBASS_DEVICEINFO
An instance of the BASS_DEVICEINFO class to store the information at.
Return Value
Type: BooleanIf successful, then 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
BASS_DEVICEINFO info = new BASS_DEVICEINFO(); for (int n=0; Bass.BASS_RecordGetDeviceInfo(n, info); n++) { Console.WriteLine(info.ToString()); }
See Also