1midi_msg_callback(3)            Allegro manual            midi_msg_callback(3)
2
3
4

NAME

6       midi_msg_callback, midi_meta_callback, midi_sysex_callback - Hook func‐
7       tions allowing you to intercept MIDI player events. Allegro  game  pro‐
8       gramming library.
9

SYNOPSIS

11       #include <allegro.h>
12
13
14       extern void (*midi_msg_callback)(int msg, int byte1, int byte2);
15
16       extern  void (*midi_meta_callback)(int type, const unsigned char *data,
17       int length);
18
19       extern  void  (*midi_sysex_callback)(const  unsigned  char  *data,  int
20       length);
21

DESCRIPTION

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

SEE ALSO

33       play_midi(3)
34
35
36
37Allegro                          version 4.2.3            midi_msg_callback(3)
Impressum