BASS_ASIO_GetDeviceInfo

Retrieves information on a device.

BOOL BASS_ASIO_GetDeviceInfo(
    DWORD device,
    BASS_ASIO_DEVICEINFO *info
);

Parameters

deviceThe device to get the information of... 0 = first.
infoPointer to a structure to receive the information.

Return value

If successful, then TRUE is returned, else FALSE is returned. Use BASS_ASIO_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_DEVICEdevice is invalid.

Remarks

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

Example

Get the total number of devices present.
int a, count = 0;
BASS_ASIO_DEVICEINFO info;
for (a = 0; BASS_ASIO_GetDeviceInfo(a, &info); a++)
    count++;

See also

BASS_ASIO_AddDevice, BASS_ASIO_GetInfo, BASS_ASIO_Init, BASS_ASIO_DEVICEINFO structure