exmidi3alleg
Playing midi music. allegro game programming library.
Usage
#include <allegro.h>
Example exmidi
Overview
This program demonstrates how to play MIDI files.
Releases
4 releases since Debian 3.1 (Sarge); the text changed 2 times.
See also
END_OF_MAIN(3alleg)
Macro to put after your main() function. Allegro game programming library.
MIDI(3alleg)
Stores MIDI data. Allegro game programming library.
SCREEN_H(3alleg)
Global define to obtain the size of the screen. Allegro game programming library.
SCREEN_W(3alleg)
Global define to obtain the size of the screen. Allegro game programming library.
allegro_error(3alleg)
Stores the last Allegro error message.
allegro_init(3alleg)
Macro to initialise the Allegro library.
allegro_message(3alleg)
Used mainly to show error messages to users. Allegro game programming library.
clear_to_color(3alleg)
Clears the bitmap to the specified color. Allegro game programming library.
desktop_palette(3alleg)
The palette used by the Atari ST low resolution desktop. Allegro game programming library.
destroy_midi(3alleg)
Destroys a MIDI structure when you are done with it. Allegro game programming library.
font(3alleg)
A simple 8x8 fixed size font. Allegro game programming library.
get_filename(3alleg)
Returns a pointer to the filename portion of a path. Allegro game programming library.
get_midi_length(3alleg)
Determines the total playing time of a midi, in seconds. Allegro game programming library.
install_keyboard(3alleg)
Installs the Allegro keyboard interrupt handler.
install_sound(3alleg)
Initialises the sound module. Allegro game programming library.
install_timer(3alleg)
Installs the Allegro timer interrupt handler.
key(3alleg)
Array of flags indicating key state. Allegro game programming library.
keypressed(3alleg)
Tells if there are keypresses waiting in the input buffer. Allegro game programming library.
load_midi(3alleg)
Loads a MIDI file. Allegro game programming library.
makecol(3alleg)
Converts an RGB value into the current pixel format. Allegro game programming library.
midi_pause(3alleg)
Pauses the MIDI player. Allegro game programming library.
midi_pos(3alleg)
Stores the current position in the MIDI file. Allegro game programming library.
midi_resume(3alleg)
Resumes playback of a paused MIDI file. Allegro game programming library.
midi_time(3alleg)
The current position in the MIDI file, in seconds. Allegro game programming library.
play_midi(3alleg)
Starts playing the specified MIDI file. Allegro game programming library.
readkey(3alleg)
Returns the next character from the keyboard buffer. Allegro game programming library.
rectfill(3alleg)
Draws a solid filled rectangle. Allegro game programming library.
rest(3alleg)
Waits a specified number of milliseconds or yields CPU. Allegro game programming library.
screen(3alleg)
Global pointer to the screen hardware video memory. Allegro game programming library.
set_display_switch_mode(3alleg)
Tells Allegro how the program handles background switching.
set_gfx_mode(3alleg)
Sets a graphic video mode. Allegro game programming library.
set_palette(3alleg)
Sets the entire palette of 256 colors. Allegro game programming library.
text_height(3alleg)
Returns the height of a font in pixels. Allegro game programming library.
text_length(3alleg)
Returns the length of a string in pixels. Allegro game programming library.
textprintf_centre_ex(3alleg)
Formatted centered output of a string. Allegro game programming library.
Referred to by
MIDI(3alleg)
Stores MIDI data. Allegro game programming library.
rest(3alleg)
Waits a specified number of milliseconds or yields CPU. Allegro game programming library.
midi_pos(3alleg)
Stores the current position in the MIDI file. Allegro game programming library.
rectfill(3alleg)
Draws a solid filled rectangle. Allegro game programming library.
load_midi(3alleg)
Loads a MIDI file. Allegro game programming library.
midi_time(3alleg)
The current position in the MIDI file, in seconds. Allegro game programming library.
play_midi(3alleg)
Starts playing the specified MIDI file. Allegro game programming library.
midi_pause(3alleg)
Pauses the MIDI player. Allegro game programming library.
midi_resume(3alleg)
Resumes playback of a paused MIDI file. Allegro game programming library.
text_height(3alleg)
Returns the height of a font in pixels. Allegro game programming library.
text_length(3alleg)
Returns the length of a string in pixels. Allegro game programming library.
destroy_midi(3alleg)
Destroys a MIDI structure when you are done with it. Allegro game programming library.
get_filename(3alleg)
Returns a pointer to the filename portion of a path. Allegro game programming library.
install_sound(3alleg)
Initialises the sound module. Allegro game programming library.
get_midi_length(3alleg)
Determines the total playing time of a midi, in seconds. Allegro game programming library.
set_display_switch_mode(3alleg)
Tells Allegro how the program handles background switching.