Message-Id: <199809230220.WAA13069@indy.delorie.com> Comments: Authenticated sender is From: "George Foot" To: lawrencej AT ufrsd DOT k12 DOT nj DOT us Date: Wed, 23 Sep 1998 03:12:07 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Allegro Datafiles Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk CC: djgpp AT delorie DOT com Precedence: bulk On 23 Sep 98 at 1:05, lawrencej AT ufrsd DOT k12 DOT nj DOT us wrote: > Ok, I figured out how to do the compiled sprites, but MIDI still isn't > working... > > Bad code: > > MIDI *the_music; > the_music = load_midi(datafile[MUSIC].dat); > > play_midi(the_music, TRUE); `load_midi' takes a filename; the object in the datafile is not a filename. It is in fact a preloaded MIDI file -- you just write: MIDI *the_music; ... the_music = datafile[MUSIC].dat; play_midi(the_music, TRUE); -- george DOT foot AT merton DOT oxford DOT ac DOT uk