1load_midi(3) Allegro manual load_midi(3)
2
3
4
6 load_midi - Loads a MIDI file. Allegro game programming library.
7
9 #include <allegro.h>
10
11
12 MIDI *load_midi(const char *filename);
13
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
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
28 destroy_midi(3), play_midi(3), get_midi_length(3), exmidi(3)
29
30
31
32Allegro version 4.2.2 load_midi(3)