Retrieves information on an output device.
BOOL BASS_GetDeviceInfo( DWORD device, BASS_DEVICEINFO *info );
device | The device to get the information of... 0 = first. |
info | Pointer to a structure to receive the information. |
BASS_ERROR_DEVICE | device is invalid. |
Notification of when the device list changes can be requested via the BASS_CONFIG_DEV_NOTIFY config option.
int a, count = 0; BASS_DEVICEINFO info; for (a = 1; BASS_GetDeviceInfo(a, &info); a++) if (info.flags & BASS_DEVICE_ENABLED) // device is enabled count++; // count it