MIDIDeviceAddEntity(_:_:_:_:_:_:)
Specifies one of the entities that make up a device.
Declaration
func MIDIDeviceAddEntity(_ device: MIDIDeviceRef, _ name: CFString, _ embedded: Bool, _ numSourceEndpoints: Int, _ numDestinationEndpoints: Int, _ newEntity: UnsafeMutablePointer<MIDIEntityRef>) -> OSStatusParameters
- device:
The device to which an entity is to be added.
- name:
The name of the new entity.
- embedded:
True if this entity is inside the device, false if the entity simply consists of external connectors to which other devices can be attached.
- numSourceEndpoints:
The number of source endpoints the entity has.
- numDestinationEndpoints:
The number of destination endpoints the entity has.
- newEntity:
On successful return, points to the newly-created entity.
Return Value
An OSStatus result code.
See Also
Functions
MIDI1UPChannelPressure(_:_:_:)MIDI1UPPolyPressure(_:_:_:_:)MIDI1UPProgramChange(_:_:_:)MIDI1UPSysEx(_:_:_:_:_:_:_:_:_:)MIDI1UPSysExArray(_:_:_:_:)MIDI2EndOfClipMessage()MIDI2EndpointDeviceIdentityNotificationMessage(_:_:_:_:_:_:)MIDI2EndpointDiscoveryMessage(_:_:_:_:_:_:_:)MIDI2EndpointInfoNotificationMessage(_:_:_:_:_:_:_:_:)MIDI2EndpointNameNotificationMessage(_:_:_:)MIDI2EndpointProductInstanceIDNotificationMessage(_:_:_:)MIDI2FlexDataMessage(_:_:_:_:_:_:_:_:_:)MIDI2FunctionBlockDiscoveryMessage(_:_:_:)MIDI2FunctionBlockInfoNotificationMessage(_:_:_:_:_:_:_:_:_:)MIDI2FunctionBlockNameNotificationMessage(_:_:_:_:)