delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/13/20:23:46

Date: Fri, 13 Mar 1998 17:23:17 -0800 (PST)
Message-Id: <199803140123.RAA06079@adit.ap.net>
Mime-Version: 1.0
To: tackmast AT aol DOT com (TackMast), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: MIDIs not working

At 09:12  3/13/1998 GMT, TackMast wrote:
>okay, i put this message up and (stupidly) didn't put in the code!! so, my
>problem is i can't get MIDI playing programs to work and here is the code.
>
>#include "stdio.h"
>#include "allegro.h"

These go in angle brackets. `#include <stdio.h>'

>
>main ()
>{
>int allegro_init();
>int install_keyboard();
>int install_timer();

Go back to your C book. You're declaring these functions and not calling
them. See also the example files from Allegro.

>
>MIDI *rok;
>rok = load_midi("Rockem.mid");
>detect_midi_driver(MIDI_AUTODETECT);
>install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, NULL);
>set_volume(255, 255);
>play_midi(rok, TRUE);
>if(readkey()){
>  destroy_midi(rok);
>  return 0;
> }
>}
>please help!!
>
>

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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