Gives the reference of number of a driver slot from its order number. The MidiGetIndSlot function allows to know the reference number of all the slots declared by a driver by giving its order number.
![]()
SlotRefNum MidiGetIndSlot (short ref, short index);
![]()
ref- a 16-bits integer, it is a driver reference number.
index- a 16-bits integer, it is the index number of the slot, between 1 and the TDriverInfos::slots field.
![]()
The result is a 32-bit integer, the slot reference number, or MIDIerrRefNum if the reference number is incorrect, or MIDIerrIndex if the index is out of range.