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:
- from MidiShare to the drivers: every slot connected to a port will get a copy of the events adressed to this port.
- from the drivers to MidiShare: every port connected to a slot will get a copy of the events received from this slot.