BASS.NET API for the Un4seen BASS Audio Library

BassBASS_RecordGetDeviceInfo Method (Int32, BASS_DEVICEINFO)

BASS.NET API for the Un4seen BASS Audio Library
Retrieves information on a recording device.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public static bool BASS_RecordGetDeviceInfo(
	int device,
	BASS_DEVICEINFO info
)

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: Boolean
If successful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

This function can be used to enumerate the available recording devices for a setup dialog.

ERROR CODEDescription
BASS_ERROR_DEVICEThe device number specified is invalid.
BASS_ERROR_DXA 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

List all available recording devices:
BASS_DEVICEINFO info = new BASS_DEVICEINFO();
for (int n=0; Bass.BASS_RecordGetDeviceInfo(n, info); n++)
{
  Console.WriteLine(info.ToString());
}
Or use the BASS_RecordGetDeviceInfos method for more convenience.
See Also

Reference