delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/05/01/09:00:10

From: Andrew <andnews AT ihug DOT com DOT oz DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Jump from timer interrupt?
Date: Thu, 01 May 2003 21:44:46 +1000
Organization: ECLiPSE
Lines: 31
Message-ID: <tp12bvosqp667mam2q0kk9ip6nv407euqa@4ax.com>
References: <MAPI DOT Id DOT 0016 DOT 00333138303633303030303930303110 AT MAPI DOT to DOT RFC822>
NNTP-Posting-Host: p162-tnt8.syd.ihug.com.au
Mime-Version: 1.0
X-Trace: lust.ihug.co.nz 1051789498 23172 203.173.147.162 (1 May 2003 11:44:58 GMT)
X-Complaints-To: abuse AT ihug DOT co DOT nz
NNTP-Posting-Date: Thu, 1 May 2003 11:44:58 +0000 (UTC)
X-Newsreader: Forte Agent 1.92/32.572
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>I am writing a music sequencer program for DOS using djgpp 2.01
>and gcc 2.7.2.1, and it works well. However, I have a small
Go and grab DJGPP 2.03 as the 2.01 is very old. The GCC you have is
also very old and if you start coding C++ on it you may find out that
it is not very compliant with the latest C++ standard that came out
after it was released.

If you do upgrade then I would suggest upgrading all of the other
programs as well.
>problem: Because I use my own timer interrupt, 
>the PC clock will not be updated during the time I run
>the sequencer. Is it possible to jump from my interrupt routine
>to the PC timer interrupt once in a while, to update the PC clock
>at 18.2 Hz? Or is there another way to solve the problem?
..snip..

I use allegro to setup a 1msec timer and it chains and takes care of
the TOD tick for the PC clock.  You can cut down allegro in about
30-90 minutes to remove the bits you need into a very small lib.

If you use Allegro as it currently stands (4.0.3 release at
www.allegro.com)  may save you allot of time as it also has drivers
for allot of sound cards and it is cross platform.

If you are going to use the app under Windows 2000 or XP then go and
grab VDMSound at http://www.ece.mcgill.ca/~vromas/vdmsound/ 


Andrew


- Raw text -


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