Accessing the Line_In or Microphone with Java

Discussion in 'Mac Programming' started by butcher, Apr 11, 2005.

  1. macrumors newbie

    Joined:
    Apr 11, 2005
    #1
    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?
     
  2. macrumors 6502a

    jamdr

    Joined:
    Jul 20, 2003
    Location:
    Bay Area
    #2
    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.
     

Share This Page