private boolean startCapture(){
try{
DataLine.Info info = new DataLine.Info( TargetDataLine.class, format);
line = (TargetDataLine)AudioSystem.getLine(info);
audioBuffer = new byte[bufferSize];
line.open(format);
line.start();
return true;
}catch(Exception e){
System.out.println("Exception thrown when capturing audio:\n" + e);
return false;
}
}
Running the code like this will just use the microphone as my line. Here is info about my sound system. Most important is probably the fact that I'm running Linux.
Thanks in advance for any and all help you can give me.


Sign In
Create Account

Back to top









