Re: getDefaultInputDevices() (Java)
Re: getDefaultInputDevices() (Java)
- Subject: Re: getDefaultInputDevices() (Java)
- From: Bill Stewart <email@hidden>
- Date: Thu, 21 Feb 2002 00:15:56 -0800
This is a problem with Java that has been fixed in the very soon to be
released Java update (which includes a CoreAudioJava update as well to fix
problems with SysEx and some other issues)
Bill
on 20/2/02 5:15 PM, Rolley wrote:
>
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.
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"Thousands of years ago, cats were worshipped as gods. We have never
forgotten this."
__________________________________________________________________________
_______________________________________________
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.