Re: getDefaultInputDevices() (Java)
Re: getDefaultInputDevices() (Java)
- Subject: Re: getDefaultInputDevices() (Java)
- From: Laurent de Segur <email@hidden>
- Date: Mon, 18 Feb 2002 22:39:02 -0800
On Monday, February 18, 2002, at 09:35 PM, Rolley wrote:
I'd like to know what do I need to initialize in order to receive and
send from/to the input/output device ?
It seems that simply calling
AudioHardware.getDefaultInputDevice();
freeze my Java/Cocoa Application.
Hi,
Does this happens when invoking java code from Cocoa only?
Not very useful but you can try running this small test from terminal to
check things out :
import com.apple.audio.hardware.*;
import com.apple.audio.*;
public class test {
private static AudioDevice device;
private static void setup () throws CAException {
device = AudioHardware.getDefaultInputDevice();
}
public static void main(String[] args) {
try {
setup();
} catch (Exception e) {
e.printStackTrace();
}
}
}
>
javac test
>
java
If it hangs then something is definitely wrong with your config or
system.
LdS
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.