• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getDefaultInputDevices() (Java)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: getDefaultInputDevices() (Java)
      • From: Rolley <email@hidden>
References: 
 >getDefaultInputDevices() (Java) (From: Rolley <email@hidden>)

  • Prev by Date: Re: Questions on MIDINotifications and threads
  • Next by Date: Re: Questions on MIDINotifications and threads
  • Previous by thread: getDefaultInputDevices() (Java)
  • Next by thread: Re: getDefaultInputDevices() (Java)
  • Index(es):
    • Date
    • Thread