Mail Archives: djgpp/1998/09/22/22:21:07
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 -