Mail Archives: djgpp/1998/03/13/20:23:46
At 09:12 3/13/1998 GMT, TackMast wrote:
>okay, i put this message up and (stupidly) didn't put in the code!! so, my
>problem is i can't get MIDI playing programs to work and here is the code.
>
>#include "stdio.h"
>#include "allegro.h"
These go in angle brackets. `#include <stdio.h>'
>
>main ()
>{
>int allegro_init();
>int install_keyboard();
>int install_timer();
Go back to your C book. You're declaring these functions and not calling
them. See also the example files from Allegro.
>
>MIDI *rok;
>rok = load_midi("Rockem.mid");
>detect_midi_driver(MIDI_AUTODETECT);
>install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, NULL);
>set_volume(255, 255);
>play_midi(rok, TRUE);
>if(readkey()){
> destroy_midi(rok);
> return 0;
> }
>}
>please help!!
>
>
Nate Eldredge
eldredge AT ap DOT net
- Raw text -