try { DataLine.Info info = new DataLine.Info(TargetDataLine.class, null, AudioSystem.NOT_SPECIFIED); supported = AudioSystem.isLineSupported(info); } catch (Exception ex) { supported = false; }
return supported;