midi_pos.3alleg

Langue: en

Version: version 4.2.2 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

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

SYNOPSIS

#include <allegro.h>

extern volatile long midi_pos;

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.

SEE ALSO

play_midi(3alleg), midi_msg_callback(3alleg), exmidi(3alleg)