• 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: Is there a way to do something like MIDIObjectFindByUniqueID from Java?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: iTunes Visualizer updates.
  • Next by Date: Re: QTSoundStream - QT != SoundManager When ?
  • Previous by thread: Re: HALOutputUnit (Pt 1)
  • Next by thread: Re: QTSoundStream - QT != SoundManager When ?
  • Index(es):
    • Date
    • Thread