lock_midi man page
lock_midi — Locks all the memory used by a MIDI file. Allegro game programming library.
void lock_midi(MIDI *midi);
Under DOS, locks all the memory used by a MIDI file. You don't normally need to call this function because load_midi() does it for you.