Re: AudioMIDI Setup endpoint names
Re: AudioMIDI Setup endpoint names
- Subject: Re: AudioMIDI Setup endpoint names
- From: Pete Yandell <email@hidden>
- Date: Fri, 12 Dec 2003 17:28:15 +1100
Under Panther:
result = MIDIObjectFindByUniqueID (externalID,
&externalDevice, &deviceType);
result = MIDIObjectGetStringProperty (externalDevice,
kMIDIPropertyName, &externalName);
doesn't always give you a valid result even though the system has
handed you the unique ID that you're using. The simple workaround is to
test the result here and only do:
CFArrayAppendValue(names,externalName);
CFRelease (externalName);
if the result as valid.
The longer answer involves the fact that external devices now have
entities, and names are buried somewhere in there. I haven't yet gone
through and worked it all out.
Pete Yandell
http://pete.yandell.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.