MIDIClientCreateWithBlock(_:_:_:)
Creates a MIDI client with a callback block.
Declaration
func MIDIClientCreateWithBlock(_ name: CFString, _ outClient: UnsafeMutablePointer<MIDIClientRef>, _ notifyBlock: MIDINotifyBlock?) -> OSStatusParameters
- name:
The client’s name.
- outClient:
On successful return, points to the newly created MIDI client.
- notifyBlock:
An optional block on which the client receives notifications of changes to the system. This system calls this block on an arbitrary thread. Thread-safety is the block’s responsibility.
Return Value
An OSStatus result code.