logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

midi_msg_callback, midi_meta_callback, midi_sysex_callback - Hook functions allowing you to intercept

Description

       Hook functions allowing you to intercept MIDI player events. If set to anything other  than  NULL,  these
       routines  will be called for each MIDI message, meta-event, and system exclusive data block respectively.
       They will execute in an interrupt handler context, so all the code and data they use  should  be  locked,
       and they must not call any operating system functions. In general you just use these routines to set some
       flags and respond to them later in your mainline code.

Name

       midi_msg_callback,  midi_meta_callback,  midi_sysex_callback  -  Hook functions allowing you to intercept
       MIDI player events. Allegro game programming library.

See Also

play_midi(3alleg4)

Allegro                                           version 4.4.3                       midi_msg_callback(3alleg4)

Synopsis

#include<allegro.h>externvoid(*midi_msg_callback)(intmsg,intbyte1,intbyte2);externvoid(*midi_meta_callback)(inttype,constunsignedchar*data,intlength);externvoid(*midi_sysex_callback)(constunsignedchar*data,intlength);

See Also