Re: Names for MIDI sources
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.