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

NAME

6       midi_pos  -  Stores the current position in the MIDI file. Allegro game
7       programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       extern volatile long midi_pos;
14

DESCRIPTION

16       Stores the current position (beat number) in the MIDI file, or contains
17       a negative number if no music is currently playing. Useful for synchro‐
18       nising animations with the music, and for checking whether a MIDI  file
19       has finished playing.
20
21

SEE ALSO

23       play_midi(3), midi_msg_callback(3), exmidi(3)
24
25
26
27Allegro                          version 4.4.3                     midi_pos(3)
Impressum