Re: displaying endpoint names from java
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.