• 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
MIDI source unique IDs (was Names for MIDI sources)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDI source unique IDs (was Names for MIDI sources)


  • Subject: MIDI source unique IDs (was Names for MIDI sources)
  • From: Pete Yandell <email@hidden>
  • Date: Tue, 12 Feb 2002 10:37:26 +1100

On Tuesday, February 12, 2002, at 09:35 AM, Kurt Revis wrote:

Also, how can the app remember the user's choice for the next time the
app is run?

Get the integer property kMIDIPropertyUniqueID.

On the topic of unique IDs, how do unique IDs work with sources created with MIDICreateSource (or MIDICreateDestination for that matter)?

In particular, is it possible for me to set my app up so that I can create a MIDI source with the same unique ID each time I run it? That way other apps can use the unique ID of the source I create to save the connection to my application, just as they would use the unique ID of a real source to save the connection to that source.

And the other question: once I've got a stored unique ID, how do I find the source that matches? Do I simply iterate through all the sources looking for it, or is there a better way?

One of the things I've noticed is that MIDIGetSource will return only presently connected sources, whereas iterating through devices, their entities and endpoints will also show previously connected devices that are currently offline. I'd like my app to be able to take a unique ID and find the source even if the source is offline (and mark it as such in the UI, leaving the user with the choice of reconnecting the source or choosing another), but iterating through every device, entity and endpoint seems a painful way to do this. Is there a better way?

Pete Yandell
http://pete.yandell.com/


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.

References: 
 >Re: Names for MIDI sources (From: Kurt Revis <email@hidden>)

  • Prev by Date: Re: Names for MIDI sources
  • Next by Date: Re: Questions on data in MIDIPackets
  • Previous by thread: Re: Names for MIDI sources
  • Next by thread: Volume Controls -
  • Index(es):
    • Date
    • Thread