Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java Sound Input Sources



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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.