Microphone on Macintosh?

How do I obtain the microphone on Macintosh? Is there a way to poll for the supported formats?

8000Hz, 8bit, mono, 1bytes/frame is NOT supported:

[quote]No line matching interface TargetDataLine
supporting format PCM_SIGNED 8000.0 Hz, 8 bit, mono, 1 bytes/frame,
is supported. *** Stack Trace: java.lang.IllegalArgumentException: No
line matching interface TargetDataLine supporting format PCM_SIGNED
8000.0 Hz, 8 bit, mono, 1 bytes/frame, is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at ao.jk.run(Unknown Source)
at java.lang.Thread.run(Thread.java:613)
[/quote]

As I recall on my Mac Powerbook, only 44.1khz formats are supported. I don’t know why that is. I remember making a quick app which showed the formats that were valid for recording, but its long gone now. You should be able to gen one up fairly quickly though.

Cheers,
DrA>