Loads a MIDI file.


MIDI *load_midi(const char *filename);
Loads a MIDI file (handles both format 0 and format 1). Example:
      MIDI *music;
      music = load_midi("backmus.mid");
      if (!music)
	 abort_on_error("Couldn't load background music!");
Returns a pointer to a MIDI structure, or NULL on error. Remember to free this MIDI file later to avoid memory leaks.
Examples using this:

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: