🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.multimedia
Article #470

WANTED: low overhead parallel port I/O buffering

#470
From: Mark Beutnagel
Date: Tue, 01 Sep 1992 19:44
32 lines
1933 bytes
I'm look for source code (C preferred) that allows a DOS
program to send bytes to a parallel port in some fashion
that lets the DOS program continue computations.  For
instance, imagine a signal processing program that produces
8-bit audio samples in (barely) real-time and a digital/audio
converter sitting on the parallel port.  The program produces
a small buffer of samples every few milliseconds.  The DAC
will probably be playing 8KHz MULAW, but that doesn't
really matter.  Print spoolers might also have such functions.

It seems that everything in the PC world wants to open a file
and play a file, usually while nothing else is happening.
I need routines that allow the program to queue up each new
buffer and get on with computing the next one.  With a fast PC,
my guess is that I could live with an interrupt per byte if
need be.

The last item on the wish-list is that someone has such
routines for a 32-bit environment.  I'm using Watcom C9.0
and the DOS/4GW extender.

Any pointers would be greatly appreciated.  Please respond via
e-mail.  I'll post a collection of interesting responses if
warranted.

Thanks in advance,

Mark Beutnagel                                  (908) 582-2952
AT&T Bell Labs, Rm 2D-513                       (908) 582-7308 [FAX]
P.O. Box 636       (for US mail, -or-)          mcb@research.att.com
600 Mountain Ave.  (for UPS, etc.)              ...!research.att.com!mcb
Murray Hill, NJ 07974-0636
Technical Details
Message-ID: <23607@alice.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!mcb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!mcb
From: mcb@alice.att.com (Mark Beutnagel)
Newsgroups: comp.multimedia,comp.sys.ibm.pc.programmer
Subject: WANTED: low overhead parallel port I/O buffering
Keywords: real-time, parallel port, audio, DAC
Message-ID: <23607@alice.att.com>
Date: 1 Sep 92 19:44:33 GMT
Article-I.D.: alice.23607
Organization: AT&T Bell Laboratories, Murray Hill NJ
Lines: 33