MIDIClientCreate(_:_:_:_:)
Creates a MIDI client.
Declaration
func MIDIClientCreate(_ name: CFString, _ notifyProc: MIDINotifyProc?, _ notifyRefCon: UnsafeMutableRawPointer?, _ outClient: UnsafeMutablePointer<MIDIClientRef>) -> OSStatusParameters
- name:
The client’s name.
- notifyProc:
An optional callback function through which the client receives notifications of changes to the system.
- notifyRefCon:
A void pointer.
- outClient:
On successful return, points to the newly created MIDI client.
Return Value
An OSStatus result code.
Discussion
The system invokes the callback function on the same run loop that you created the client on.