我想测试一下我从调音台收到的特定源线是否是麦克风。我用代码做了..
//All lines have been successfully opened in previous code
Line[] lines = myMixer.getSourceLines();
int length = lines.length;
for ( int i = 0; i < length; i ++){
// Since all lines are open and supported all I need to do is
// iterate through the array and test each line to see if its
// a mic.
if(myMixer.isLineSupported(Port.Info.MICROPHONE){ // I need a different method
System.out.println("This line never prints");
}
}
除了isLineSupported()之外,是否有其他方法可以使用,如果我的线路进入麦克风会让我知道?