delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/12:15:23

From: Jason Eastham <wipeout AT inlink DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help with Allegro
Date: Tue, 23 Dec 1997 10:20:03 -0600
Organization: InLink Communications Company
Lines: 34
Message-ID: <349FE4B3.3784D2C0@inlink.com>
References: <349EB8ED DOT DCC54887 AT inlink DOT com> <#Qh$4zzD9GA DOT 347 AT upnetnews02 DOT moswest DOT msn DOT net>
Reply-To: wipeout AT inlink DOT com
NNTP-Posting-Host: wipeout.inlink.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thank you.
I ended up using

if (keypressed())
  stop_midi();
  clear_keybuf();

Oh, and I changed it to autodetect the hardware. Thanks for reminding me.
Jason Eastham

DeHackEd wrote:

> >
>
> You have a do-nothing loop who's test is to see if the MIDI is done playing.
>
> while (midipos != -1)
> {
> }
>
> Why not make it something like this?
>
> while (midipos!= -1)
> {
>     if (keypressed())
>         break;
> }
>
> And one thing - if your code is to be given around, considder appending the
> files to the EXE, and having install_sound() autodetect the card. If you won't
> be using sound, don't give it a digital card. Anyway...



- Raw text -


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