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

NAME

6       midi_seek - Seeks to the given midi_pos in the current MIDI file. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int midi_seek(int target);
14

DESCRIPTION

16       Seeks to the given midi_pos in the current MIDI file. If the target  is
17       earlier  in the file than the current midi_pos it seeks from the begin‐
18       ning; otherwise it seeks from the current position.
19

RETURN VALUE

21       Returns zero if it could successfully seek to the  requested  position.
22       Otherwise,  a  return value of 1 means it stopped playing, and midi_pos
23       is set to the negative length of the MIDI file (so  you  can  use  this
24       function  to  determine the length of a MIDI file). A return value of 2
25       means the MIDI file looped back to the start.
26
27

SEE ALSO

29       play_midi(3), midi_pos(3)
30
31
32
33Allegro                          version 4.4.3                    midi_seek(3)
Impressum