System.out.println(" Ver.: "+mInfo[i].getVersion());
System.out.println(" Desc.: "+mInfo[i].getDescription());
}
// get Mixer 0
Mixer mixer = AudioSystem.getMixer(mInfo[0]);
// get Line Info
Line.Info lInfo[] = mixer.getSourceLineInfo();
System.out.println(" available Lines on Mixer 0:");
for (int i = 0; i < lInfo.length; i++) {
System.out.println(" LineInfo["+i+"]: "+lInfo[i]);
AudioFormat supFormats[] = ((DataLine.Info)lInfo[i]).getFormats();
for (int j = 0; j < supFormats.length; j++)
System.out.println(" "+supFormats[j]);
}
// AudioFormat[] DataLine.Info.getFormats()
try {
SourceDataLine line = (SourceDataLine)mixer.getLine(lInfo[0]);
// get Controls
Control controls[] = line.getControls();
System.out.println(" available Controls on Line 0:");
for (int i = 0; i < controls.length; i++)