Contents

MIDIEntityAddOrRemoveEndpoints(_:_:_:)

Adds or removes an entity’s endpoints.

Declaration

func MIDIEntityAddOrRemoveEndpoints(_ entity: MIDIEntityRef, _ numSourceEndpoints: Int, _ numDestinationEndpoints: Int) -> OSStatus

Parameters

  • entity:

    The entity to update.

  • numSourceEndpoints:

    The number of source endpoints.

  • numDestinationEndpoints:

    The number of destination endpoints.

Return Value

An OSStatus result code.

Discussion

Drivers and configuration editors may call this function to add to or remove an entity’s endpoints. The MIDIProtocolID of new endpoints is initially the same as that of the entity.

See Also

Managing Entities