Dec 092017
File that's very useful for programming the SoundBlaster. Includes C source code as well.
File SBF2.ZIP from The Programmer’s Corner in
Category C Source Code
File that’s very useful for programming the SoundBlaster. Includes C source code as well.
File Name File Size Zip Size Zip Type
BRASS2.SAM 13754 11716 deflated
BRASSHIT.SAM 14318 10424 deflated
DACDIR.C 1267 586 deflated
DACDIR.EXE 24206 12999 deflated
DACDMA.C 2518 1053 deflated
DACDMA.EXE 29882 16383 deflated
DMA_CODE.ASM 14943 3743 deflated
DRIVER.C 3045 972 deflated
DRIVER.EXE 18387 10279 deflated
ENVIRON.C 1228 527 deflated
FMTEST.C 919 380 deflated
FMTEST.EXE 19002 10512 deflated
GETOPT.C 4215 1768 deflated
GETVOL.C 1282 348 deflated
GETVOL.EXE 10910 6124 deflated
HITIT.SAM 4100 3819 deflated
LOWBRASS.SAM 12380 10617 deflated
M1.SAM 32093 20037 deflated
MAKEFILE 1110 438 deflated
MIXED.SAM 8200 7365 deflated
MIXED1.SAM 27508 23025 deflated
MULT.SAM 18339 14924 deflated
ORGAN.SAM 23612 20566 deflated
PLAY_CMF.C 8056 2017 deflated
PLAY_CMF.EXE 34174 20842 deflated
README.TXT 2131 1025 deflated
SB.H 4342 1341 deflated
SBDAC.C 2179 855 deflated
SBF.LIB 12288 6073 deflated
SBF.TXT 1560 751 deflated
SBFM.C 3574 977 deflated
SBFM.EXE 18751 10446 deflated
SBMIDI.C 298 185 deflated
SBP.ASM 655 320 deflated
SBP_CHK.ASM 1047 476 deflated
VOCHDR.H 478 229 deflated

Download File SBF2.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 9, 2017  Add comments

Leave a Reply