Provided by: liballegro-doc_4.2.2-3_all
midi_recorder - Hook notifying you when new MIDI data becomes available. Allegro game programming library.
#include <allegro.h> extern void (*midi_recorder)(unsigned char data);
If set, this function is called by the MIDI input driver whenever a new byte of MIDI data becomes available. It runs in an interrupt context, so it must execute very quickly and all the code/data must be locked. This currently works only under DOS and Windows.