www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/19/23:18:23

From: Bill Currie <bcurrie AT tssc DOT co DOT nz>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


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