debian man page for midi_seek

Query: midi_seek

OS: debian

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

midi_seek(3alleg4)						  Allegro manual						midi_seek(3alleg4)

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.
SEE ALSO
play_midi(3alleg4), midi_pos(3alleg4) Allegro version 4.4.2 midi_seek(3alleg4)
Related Man Pages
exmidi(3alleg4) - opendarwin
play_midi(3alleg4) - centos
play_midi(3alleg4) - opendarwin
exmidi(3alleg4) - mojave
play_midi(3alleg4) - redhat
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Detecting unused variables...
Weird 'find' results
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?