BASS_GetDeviceDescription

Retrieves the text description of a device.

BOOL WINAPI BASS_GetDeviceDescription(
    int devnum,
    char **desc
);

Parameters
devnumThe device to get the description of... 0 = first.
descPointer to store pointer to text description at. You should not edit the text at the returned pointer.

Return value
If succesful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_DEVICEThe device number specified is invalid.

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

Example
To get the total number of devices present.

int count=0; // the device counter
char *dummy; // description pointer
while (BASS_GetDeviceDescription(count,&dummy)) count++;