The example only shows output devices.
This code prints also input devices:
BASS_DEVICEINFO info = BASS_DEVICEINFO.allocate();
int i = 1;
//Get information on system devices
while (Bass.BASS_GetDeviceInfo(i, info)) {
System.out.println(info.getName());
i++;
}