Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

butcher

macrumors newbie
Original poster
Apr 11, 2005
2
0
Hi,

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?
 

jamdr

macrumors 6502a
Jul 20, 2003
659
0
Bay Area
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.