I forget about BASS_DEVICE_ENABLED

if I remove my device the flag BASS_DEVICE_ENABLED must be zero but device will still enumerated?
but if I restart my app after removing device BASS_RecordGetDeviceInfo shows correctly device count.
If device has disabled (physically removed) but how is index of other presented devices to operate them in bass functions? index shifted or not?
for example:
counter, index, device
1, 0, some sound device1 enabled
2, 1, some sound device2 enabled
3, 2, some sound device3 enabled
and to call device3 we use index=2.
after removing device2 we have as
1, 0 - some sound device1 enabled
2, 1 - some sound device2 not enabled
3, 2 - some sound device3 enabled
or
1, 0, some sound device1 enabled
x, 1, some sound device2 nor enabled
2, 2, some sound device3 enabled
what index we must use to operate device3?