Contents

MIDIDeviceDispose(_:)

Disposes of a MIDI device.

Declaration

func MIDIDeviceDispose(_ device: MIDIDeviceRef) -> OSStatus

Parameters

  • device:

    The device to dispose.

Return Value

An OSStatus result code.

Discussion

Drivers may call this function to dispose of device objects that they haven’t already added to the system using MIDISetupAddDevice(_:). To remove a device after adding it to the session, call MIDISetupRemoveDevice(_:).

Nondrivers can’t call this function, and instead must call MIDISetupAddDevice(_:) and MIDISetupRemoveDevice(_:).

See Also

Managing Device Lifecyle