midi_msg_callback (3) - Linux Manuals
midi_msg_callback: Hook functions allowing you to intercept MIDI player events. Allegro game programming library.
Command to display midi_msg_callback
manual in Linux: $ man 3 midi_msg_callback
NAME
midi_msg_callback, midi_meta_callback, midi_sysex_callback - Hook functions allowing you to intercept MIDI player events. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
extern void (*midi_msg_callback)(int msg, int byte1, int byte2);
extern void (*midi_meta_callback)(int type, const unsigned char *data, int length);
extern void (*midi_sysex_callback)(const unsigned char *data, int length);
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.
Pages related to midi_msg_callback
- midi_meta_callback (3) - Hook functions allowing you to intercept MIDI player events. Allegro game programming library.
- midi_loop_end (3) - Loop start and end points, set by play_looped_midi(). Allegro game programming library.
- midi_loop_start (3) - Loop start and end points, set by play_looped_midi(). Allegro game programming library.
- midi_out (3) - Streams a block of MIDI commands into the player. Allegro game programming library.
- midi_pos (3) - Stores the current position in the MIDI file. Allegro game programming library.
- midi_recorder (3) - Hook notifying you when new MIDI data becomes available. Allegro game programming library.
- midi_seek (3) - Seeks to the given midi_pos in the current MIDI file. Allegro game programming library.
- midi_sysex_callback (3) - Hook functions allowing you to intercept MIDI player events. Allegro game programming library.
- midi_time (3) - The current position in the MIDI file, in seconds. Allegro game programming library.