Contents

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>) -> OSStatus

Parameters

  • 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