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

From: lawrencej AT ufrsd DOT k12 DOT nj DOT us
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Datafiles
Date: Wed, 23 Sep 1998 01:05:08 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 33
Message-ID: <6u9hg4$23v$1@nnrp1.dejanews.com>
References: <6u606b$8uh$1 AT nnrp1 DOT dejanews DOT com>
NNTP-Posting-Host: 207.8.141.130
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

 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);


 (when MUSIC is indeed loaded into my datafile, which is loaded but not shown
in the above code snippet.)

OK code:

  MIDI *the_music;
  the_music = load_midi("mysong.mid");

  play_midi(the_music, TRUE);


 What am I doing wrong?

-- Joe Lawrence
   lawrencej AT ufrsd DOT k12 DOT nj DOT us





-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

- Raw text -


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