• 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: displaying endpoint names from java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying endpoint names from java


  • Subject: Re: displaying endpoint names from java
  • From: Marc Pergand <email@hidden>
  • Date: Tue, 27 Jan 2004 12:02:35 +0100

Excerpt from http://perso.wanadoo.fr/mpergand/tutoriels/en/midi_thru/MidiThru.dmg

int nbSource=MIDISetup.getNumberOfSources();
String name;

// search for sources

for(int i=0;i<nbSource;i++)
{
MIDIEndpoint endpoint=MIDISetup.getSource(i); // source endpoint

try
{
// name of the source
name= endpoint.getStringProperty(MIDIConstants.kMIDIPropertyName).asString();
}
catch(Exception ex)
{
name= "";
}

}


Marc.
_______________________________________________
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.

  • Prev by Date: HALOutputUnit and multiple streams
  • Next by Date: Re: Streaming OS X audio over network
  • Previous by thread: displaying endpoint names from java
  • Next by thread: HALOutputUnit and multiple streams
  • Index(es):
    • Date
    • Thread