Dec 082017
Sound Blaster .VOC routines (Using DAC) with C and ASM source.
File SBDAC.ZIP from The Programmer’s Corner in
Category C Source Code
Sound Blaster .VOC routines (Using DAC) with C and ASM source.
File Name File Size Zip Size Zip Type
DACDIR.C 1389 642 deflated
DACDIR.EXE 19467 10838 deflated
DACDMA.C 3771 1340 deflated
DACDMA.EXE 24706 13612 deflated
DRIVER.C 3045 972 deflated
DRIVER.EXE 18387 10279 deflated
ENVIRON.C 1237 532 deflated
GETVOL.C 1282 348 deflated
GETVOL.EXE 10910 6125 deflated
HITIT.SAM 4100 3819 deflated
MAKEFILE 559 261 deflated
README.TXT 2131 1025 deflated
SB.H 2157 648 deflated
SB.LIB 3072 1538 deflated
SBP.ASM 625 310 deflated

Download File SBDAC.ZIP Here

Contents of the README.TXT file

This is some short test code that I put together to drive the
Soundblaster's DAC in both DMA and direct mode. There are two programs:

DACDMA.EXEOutputs a raw 8 bit sample file to the DAC in
DMA mode.

DACDIR.EXEOutputs a raw 8 bit sample file to the DAC in
direct mode.

Unfortunately DACDIR has seemed to have stopped working for some reason.
If someone can tell me what has gone wrong, please send me some mail.

The usage of bot programs is quite simple. DACDMA can take up to two
arguments. The first is the name of the sample file. The second is an
optional sample rate to play the sample back. The sample rate will
default to 11KHz. DACDIR only takes one arguement, the name of the raw
sample to play.

The IO address and IRQ for the Soundblaster is set in the file SBP.ASM.
It is fairly important that these are set correctly. I have it set up
for port 0x220 and IRQ 5 (I sort of found a conflict with IRQ 7 under
OS/2 2.0 8-(). Note also, that the samples are only played in mono on
the SB Pro. I haven't yet worked out how to use it in stereo.

I have written in support for the BLASTER environment variable. There is
a function that will read and parse this variable to determine what the
settings for the Soundblaster are. If the variable isn't set, the
function will return a 1 if the BLASTER variable is not set, and 0 if it
is ok. If it returns a 1, the arguments are set to the default
Sounblaster parameters.

As a bonus, I have included a program that will read the Soundblaster
Pro's mixer chip and report what the current volume settings are. I have
a little more documentation for it, but I haven't got around to writing
it up properly yet. It is just some random scribblings.

I have now added a short program that makes use of the CT-VOICE.DRV
driver to play .VOC files. It isn't very well commented but it should
give you an idea of how to use the driver.

Any comments or suggestions (or especially more programming information)
can be directed to [email protected]

Jeff Bird 12 Feb 92

 December 8, 2017  Add comments

Leave a Reply