What would be the best way to poll for the presence of the soundcard, i.e. regularly ask if it is attached and ready to work (for instance a USB soundcard that can be attached) ?
I tried doing it via a Timer that polls checks every 3 seconds via setAudioDevice(), but it seemed to block for a long time, so the whole GUI Thread was blocked.