BASS.NET API for the Un4seen BASS Audio LibraryBassAsioBASS_ASIO_GetDeviceInfo Method (Int32)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.12.0
Syntax

public static BASS_ASIO_DEVICEINFO BASS_ASIO_GetDeviceInfo(
	int device
)

Parameters

device
Type: SystemInt32
The device to get the information of... 0 = first.

Return Value

Type: BASS_ASIO_DEVICEINFO
If successful, then an instance of the BASS_ASIO_DEVICEINFO class 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

VB
Dim n As Integer = 0
Dim info As New BASS_ASIO_DEVICEINFO()
While Not (info Is Nothing)
  info = BassAsio.BASS_ASIO_GetDeviceDescription(n)
  If Not (info Is Nothing) Then
    ...
  End If
  n += 1
End While
BASS_ASIO_DEVICEINFO info;
for (int n = 0; (info = BassAsio.BASS_ASIO_GetDeviceInfo(n)) != null; n++)
{
  ...
}
Or use the BASS_ASIO_GetDeviceInfos method for more convenience.
See Also

Reference