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

NAME

6       load_midi - Loads a MIDI file. Allegro game programming library.
7

SYNOPSIS

9       #include <allegro.h>
10
11
12       MIDI *load_midi(const char *filename);
13

DESCRIPTION

15       Loads a MIDI file (handles both format 0 and format 1). Example:
16
17          MIDI *music;
18          music = load_midi("backmus.mid");
19          if (!music)
20             abort_on_error("Couldn't load background music!");
21

RETURN VALUE

23       Returns  a  pointer  to a MIDI structure, or NULL on error. Remember to
24       free this MIDI file later to avoid memory leaks.
25
26

SEE ALSO

28       destroy_midi(3), play_midi(3), get_midi_length(3), exmidi(3)
29
30
31
32Allegro                          version 4.4.2                    load_midi(3)
Impressum