Contents

MIDIPortConnectSource(_:_:_:)

Makes a connection from a source to a client input port.

Declaration

func MIDIPortConnectSource(_ port: MIDIPortRef, _ source: MIDIEndpointRef, _ connRefCon: UnsafeMutableRawPointer?) -> OSStatus

Parameters

  • port:

    The port on which to create the connection.

  • source:

    The source from which to create the connection.

  • connRefCon:

    The data that passes to the port’s Midireceiveblock to identify the source, which is always Nil 227m0 for virtual destinations.

Return Value

An OSStatus result code.

See Also

Port management