MIDIObjectFindByUniqueID

Abstract: Locate a device, external device, entity, or endpoint by its uniqueID.

extern OSStatus MIDIObjectFindByUniqueID( MIDIUniqueID inUniqueID,
 MIDIObjectRef * outObject,
 MIDIObjectType * outObjectType);

New for CoreMIDI 1.3.

Parameters

NameDescription
inUniqueIDThe uniqueID of the object to search for. (This should be the result of an earlier call to MIDIObjectGetIntegerProperty for the property kMIDIPropertyUniqueID).
outObjectThe returned object, or NULL if the object was not found or an error occurred. This should be cast to the appropriate type (MIDIDeviceRef, MIDIEntityRef, MIDIEndpointRef), according to *outObjectType.
outObjectTypeOn exit, the type of object which was found; undefined if none found.
Result: An OSStatus error code, including kMIDIObjectNotFound if there is no object with the specified uniqueID.


[ Search xmidi.com:    ]


[ home | docs | apps | links ]