View Full Version : Accessing the Line_In or Microphone with Java

Apr 11, 2005, 06:29 PM

I am trying to create a program that essentially tries to detect the Line-in or Microphone for any activity. I have been trying it with Java and tried to use Port.Info.MICROPHONE to get access to it but when I compile, I get errors. Any suggestions, pls?

Apr 16, 2005, 11:28 PM
This is pretty easy to do. To capture sound from the microphone, you'll need to create an AudioFormat, TargetDataLine, and a few others. How exactly are you using Port.Info? If you post some code, I'll take a look at it.