Re: getDefaultInputDevices() (Java)
Re: getDefaultInputDevices() (Java)
- Subject: Re: getDefaultInputDevices() (Java)
- From: Rolley <email@hidden>
- Date: Wed, 20 Feb 2002 20:15:20 -0500
This test works fine, it exits, with no errors, but some tests on my
application showed that only the cocoa interface is frozen, but other
tasks are still being executed.
hum...
On Tuesday, February 19, 2002, at 01:39 AM, Laurent de Segur wrote:
>
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.