Re: Is there a way to do something like MIDIObjectFindByUniqueID from Java?
Re: Is there a way to do something like MIDIObjectFindByUniqueID from Java?
- Subject: Re: Is there a way to do something like MIDIObjectFindByUniqueID from Java?
- From: Marc Pergand <email@hidden>
- Date: Tue, 3 Feb 2004 20:37:00 +0100
Yes there is, for example for a MIDI source connection:
int uniqueID=endpoint.getProperty(MIDIConstants.kMIDIPropertyUniqueID);
You can save this uniqueID in the preference file:
NSUserDefaults prefs = NSUserDefaults.standardUserDefaults();
prefs.setIntegerForKey(uniqueID,"MIDISourceID");
And to retreave it:
NSUserDefaults prefs = NSUserDefaults.standardUserDefaults();
int uniqueID=prefs.integerForKey("MIDISourceID");
Now you have to search thru all the connections available to find the
endpoint which has this ID.
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.