Contents

MIDIClientDispose(_:)

Disposes of a MIDI client.

Declaration

func MIDIClientDispose(_ client: MIDIClientRef) -> OSStatus

Parameters

  • client:

    The client to dispose of.

Return Value

An OSStatus result code.

Discussion

Don’t explicitly dispose of your client; the system automatically disposes all clients when an app terminates. However, if you call this method to dispose the last or only client owned by an app, the MIDI server may exit if there are no other clients remaining in the system. If this occurs, all subsequent calls by your app to MIDIClientCreate(_:_:_:_:) and MIDIClientCreateWithBlock(_:_:_:) fail.

See Also

Client management