• 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: Names for MIDI sources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Names for MIDI sources


  • Subject: Re: Names for MIDI sources
  • From: Kurt Revis <email@hidden>
  • Date: Mon, 11 Feb 2002 14:35:42 -0800

On Monday, February 11, 2002, at 10:49 AM, Andy Robinson wrote:

I know to use MIDIGetNumberOfSources and MIDIGetSource to enumerate
them, but how do we then display the list to the user? They don't seem
to have names.

Sure they have names.

CFStringRef nameString;

MIDIObjectGetStringProperty(source, kMIDIPropertyName, &nameString);

And remember to CFRelease(nameString) when you are finished with it.

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

Get the integer property kMIDIPropertyUniqueID.

--
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.

  • Follow-Ups:
    • MIDI source unique IDs (was Names for MIDI sources)
      • From: Pete Yandell <email@hidden>
References: 
 >Names for MIDI sources (From: Andy Robinson <email@hidden>)

  • Prev by Date: Re: Volume Controls -
  • Next by Date: MIDI source unique IDs (was Names for MIDI sources)
  • Previous by thread: Names for MIDI sources
  • Next by thread: MIDI source unique IDs (was Names for MIDI sources)
  • Index(es):
    • Date
    • Thread