MidiConnectSlot


Make or remove a connection between a slot and a MidiShare logical port. MidiShare applications owning a "context alarm" will be informed of the connection change using the MIDIChgSlotConnect alarm code.

    void MidiConnectSlot (short port, SlotRefNum slot, Boolean state);

port
a 16-bit integer, it is a MidiShare port number.
slot
a 32-bit integer, it is the slot reference number.
state
a Boolean value to specify whether the connection should be done (true) or removed (false).

a slot may be connected to one or several ports. The connection set determines the routing in the two directions: