🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sco.opendesktop
Article #40

device driver timing, adlib music card

#40
From: Michael Reamy
Date: Wed, 27 Feb 1991 01:52
15 lines
1254 bytes
I am writing a device driver for SCO Unix to run an adlib card sound card.
I need precise timing while playing music so that the music will be played
on time.  I have identified two possible ways to handle this.  One way is to
use the delay(K) function and another would be to use an available timer
to generate an interrupt when I want it.  This is really a real time 
application so SV.3 Unix is probably not the best OS to use but it will
have to do (I am doing it for the fun of it).  Has anybody done this before 
and know a better way?  Is there a spare timer available that is unused by 
SCO Unix?  
I have a MIDI player running in user mode (using nap as my interval timer). 
If I can figure out the best method of doing this reliably then I will move
the time critical code into the driver.

Michael Reamy
...!uunet!efreet!miker
Technical Details
Message-ID: <167@efreet.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!crdgw1!uunet!efreet!miker

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!crdgw1!uunet!efreet!miker
From: miker@efreet.UUCP (Michael Reamy)
Newsgroups: sco.opendesktop,comp.unix.sysv386
Subject: device driver timing, adlib music card
Message-ID: <167@efreet.UUCP>
Date: 27 Feb 91 01:52:27 GMT
Followup-To: sco.opendesktop
Distribution: usa
Organization: Michael Reamy, Personal Machine
Lines: 15