Mail Archives: djgpp/1997/12/23/12:15:23
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 -