Date: Fri, 13 Mar 1998 17:23:17 -0800 (PST) Message-Id: <199803140123.RAA06079@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: tackmast AT aol DOT com (TackMast), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: MIDIs not working Precedence: bulk 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 ' > >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