midi_seek (3) - Linux Manuals
midi_seek: Seeks to the given midi_pos in the current MIDI file. Allegro game programming library.
Command to display midi_seek
manual in Linux: $ man 3 midi_seek
NAME
midi_seek - Seeks to the given midi_pos in the current MIDI file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int midi_seek(int target);
DESCRIPTION
Seeks to the given midi_pos in the current MIDI file. If the target is
earlier in the file than the current midi_pos it seeks from the
beginning; otherwise it seeks from the current position.
RETURN VALUE
Returns zero if it could successfully seek to the requested position.
Otherwise, a return value of 1 means it stopped playing, and midi_pos is
set to the negative length of the MIDI file (so you can use this function
to determine the length of a MIDI file). A return value of 2 means the
MIDI file looped back to the start.
Pages related to midi_seek
- midi_sysex_callback (3) - Hook functions allowing you to intercept MIDI player events. Allegro game programming library.
- midi_loop_end (3) - Loop start and end points, set by play_looped_midi(). Allegro game programming library.
- midi_loop_start (3) - Loop start and end points, set by play_looped_midi(). Allegro game programming library.
- midi_meta_callback (3) - Hook functions allowing you to intercept MIDI player events. Allegro game programming library.
- midi_msg_callback (3) - Hook functions allowing you to intercept MIDI player events. Allegro game programming library.
- midi_out (3) - Streams a block of MIDI commands into the player. Allegro game programming library.
- midi_pos (3) - Stores the current position in the MIDI file. Allegro game programming library.
- midi_recorder (3) - Hook notifying you when new MIDI data becomes available. Allegro game programming library.
- midi_time (3) - The current position in the MIDI file, in seconds. Allegro game programming library.