Function

MIDISetupRemoveDevice(_:)

Removes a driver-owned MIDI device from the current MIDISetup

Declaration

func MIDISetupRemoveDevice(_ device: MIDIDeviceRef) -> OSStatus

Parameters

device

The device to be added.

Discussion

Generally this should only be called from a studio configuration editor, to remove a device which is offline and which the user has specified as being permanently missing.

Instead of removing devices from the setup, drivers should set the device's kMIDIPropertyOffline to 1 so that if the device reappears later, none of its properties are lost.

New for CoreMIDI 1.1.