| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <DELCAPSyerricde AT pineight DOT 8mSOFTWARE DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: How to use Allegro's midi_msg_callback function? |
| Organization: | Pin Eight Software <http://yerricde.tripod.com/binaries/> |
| Message-ID: | <i4ceOETu7qsGQTzK40bs3PQKSIjq@4ax.com> |
| References: | <381c4c92 DOT 5417713 AT news DOT f9 DOT net DOT uk> |
| X-Newsreader: | Forte Agent 1.6/32.525 |
| MIME-Version: | 1.0 |
| Lines: | 23 |
| X-Trace: | /Kp2lrFg3qcjx90VxLWEK0KL5Vw5YxJUafdRmdPeNH/bFIY4LiMsRskYfkBCzA5j50aEJkVN1tMb!fHUvlpJIafnwgIH+NPs1eHL4zJtnbr9zmMK46YVbxC0ijEGiO51SdH55BMwp5f6n7Q== |
| X-Complaints-To: | abuse AT gte DOT net |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| NNTP-Posting-Date: | Tue, 02 Nov 1999 06:44:32 GMT |
| Distribution: | world |
| Date: | Tue, 02 Nov 1999 06:44:32 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Sun, 31 Oct 1999 14:13:20 GMT,
You_Know_Who AT NoSpam DOT I DOT Am (Darac) wrote:
> Can someone tell me how to use Allegro's midi_msg_callback function?
> The documentation says that it is called each time there is a MIDI
> message sent but where do I put the code that I want done each time
> it's called? Also, the documentation says that the code should be
> 'locked'. What does that mean?
int MyCallback(whatever parameters)
{
...
}
END_OF_FUNCTION(MyCallback)
or something like that.
LOCK_FUNCTION(MyCallback);
midi_msg_callback = MyCallback.
--
Damian Yerrick
Visit my web site: http://yerricde.spedia.net/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |