BASS.NET API for the Un4seen BASS Audio Library

BassAsioBASS_ASIO_GetDeviceInfo Method (Int32, BASS_ASIO_DEVICEINFO)

BASS.NET API for the Un4seen BASS Audio Library
Retrieves information on an Asio device.

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

public static bool BASS_ASIO_GetDeviceInfo(
	int device,
	BASS_ASIO_DEVICEINFO info
)

Parameters

device
Type: SystemInt32
The device to get the information of... 0 = first.
info
Type: Un4seen.BassAsioBASS_ASIO_DEVICEINFO
An instance of the BASS_ASIO_DEVICEINFO class to store the information at.

Return Value

Type: Boolean
If successful, then is returned, else is returned. Use BASS_ASIO_ErrorGetCode to get the error code.
Remarks

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

ERROR CODEDescription
BASS_ERROR_DEVICEThe device number specified is invalid.

Examples

List all available devices:
BASS_ASIO_DEVICEINFO info = new BASS_ASIO_DEVICEINFO();
for (int n=0; BassAsio.BASS_ASIO_GetDeviceInfo(n, info); n++)
{
  Console.WriteLine(info.ToString());
}
Or use the BASS_ASIO_GetDeviceInfos method for more convenience.
See Also

Reference