From: Bill Currie Newsgroups: comp.os.msdos.djgpp Subject: Re: Playing Midi in allegro Date: Thu, 20 Nov 1997 14:53:06 +1300 Organization: Telecommunication Systems Support Centre Lines: 23 Message-ID: <34739802.6A0D@tssc.co.nz> References: <34738705 DOT 1F8CB3B4 AT primenet DOT com> NNTP-Posting-Host: node106.tssc.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Mike McLean wrote: > > I'm using the WIP Nov 16th version of allegro and I am trying to play a > midi file, the source compiles fine, but I don't get the file to play. [snip] > int main(void) > { > load_midi("mission.mid"); > play_midi(load_midi("mission.mid"),1); > } I'm not certain (I haven't done any sound programming with allegro yet), but I suspect you have to do an 'install midi' or some such first (timer might be needed as well, though I don't know). Also 'init_allegro' (sp? my computer with allegro installed is currently unavailable) is also a good idea (so is `return 0' at the end of main ;). HTH Bill -- Leave others their otherness