I'm trying to select specific devices for sound input
using JavaSound. For example, I want to be able to pick
from among the Line In, CD/DVD, USB mic, and the iSight's
microphone. I tried:
Line.Info[] list = AudioSystem.getTargetLineInfo(port);
with port set to values like Port.Info.MICROPHONE,
Port.Info.COMPACT_DISC, etc. but these return an empty
list.
If I pass in a DataLine.Info object specifying 44.1 KHz
16-bit stereo samples, I get back two lines. Is there any
way of determining which physical device a particular
instance will read from?
What is the right way to do this? Am I missing something
obvious? Is Java Sound on the Mac hardwired to only read
from the default sound input source as configured in the
System Preferences?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden