.\" Generated by the Allegro makedoc utility .TH midi_pos 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME midi_pos \- Stores the current position in the MIDI file. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B extern volatile long midi_pos; .SH DESCRIPTION Stores the current position (beat number) in the MIDI file, or contains a negative number if no music is currently playing. Useful for synchronising animations with the music, and for checking whether a MIDI file has finished playing. .SH SEE ALSO .BR play_midi (3alleg4), .BR midi_msg_callback (3alleg4), .BR exmidi (3alleg4)