delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/22/22:21:07

Message-Id: <199809230220.WAA13069@indy.delorie.com>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT ox DOT ac DOT uk>
To: lawrencej AT ufrsd DOT k12 DOT nj DOT us
Date: Wed, 23 Sep 1998 03:12:07 +0000
MIME-Version: 1.0
Subject: Re: Allegro Datafiles
Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk
CC: djgpp AT delorie DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019