delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/19/20:46:09

From: Mike McLean <libolt AT primenet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Playing Midi in allegro
Date: 19 Nov 1997 17:39:00 -0700
Organization: Primenet Services for the Internet
Lines: 20
Message-ID: <34738705.1F8CB3B4@primenet.com>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.
I've never tried to play midi with any version of allegro before. 
Please help me out, and tell me what mistake(s) I am making.  I'm trying
to better myself at programming.

Here is the code:

#include <allegro.h>
#include <iostream.h>

int main(void)
{
  load_midi("mission.mid");
  play_midi(load_midi("mission.mid"),1);
}

Any help is appreciated.

Mike

- Raw text -


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