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

Re: MIDI source unique IDs (was Names for MIDI sources)


  • Subject: Re: MIDI source unique IDs (was Names for MIDI sources)
  • From: Kurt Revis <email@hidden>
  • Date: Mon, 11 Feb 2002 20:56:53 -0800

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

The IDs are mathematically generated from the name, but then altered in the event of a duplication, so they're only semi-predictable.

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?

There may be a lack of security such that you can change a source's unique ID (and thus potentially make it non-unique), but now that I've mentioned that, I'm probably going to have to fix it!

So you're saying I *shouldn't* be able to set the unique ID of a source that I create myself (using MIDICreateSource()), and that it should be set for me automatically?

Because that seems to be the opposite of how it works right now: When I MIDICreateSource() and then ask for the source's unique ID, I get a kMIDIUnknownProperty error. I can make up my own unique ID and set the value of the property, and it works just fine.

I assumed this was the correct way to do things--was I wrong?

(For sources provided by actual hardware, of course, I expect things to work the way you describe.)

--
Kurt Revis
email@hidden
_______________________________________________
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: 
 >MIDI source unique IDs (was Names for MIDI sources) (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: coremidi & codewarrior
  • Next by Date: Re: [coreaudio] Re: 'tap' device
  • Previous by thread: MIDI source unique IDs (was Names for MIDI sources)
  • Next by thread: Re: MIDI source unique IDs (was Names for MIDI sources)
  • Index(es):
    • Date
    • Thread