*BSD News Article 6405


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!darwin.sura.net!mojo.eng.umd.edu!pandora.pix.com!stripes
From: stripes@pix.com (Josh Osborne)
Subject: Re: Sound Blaster Pro driver (re-post)
Message-ID: <Bw0pv7.4Jo@pix.com>
Sender: news@pix.com (The News Subsystem)
Nntp-Posting-Host: pandora.pix.com
Organization: Pix Technologies -- The company with no adult supervision
References: <BvzMx7.95B@pix.com>
Date: Mon, 12 Oct 1992 16:59:29 GMT
Lines: 35

In article <BvzMx7.95B@pix.com> lidl@pix.com (Kurt J. Lidl) writes:
>A word of warning.  Josh didn't finish whacking together a
>"play" command (I just hack on things, Josh *programs* :-)  We also

Don't let him fool you, he isn't a bad programmer, he just doesn't
enjoy it enough.  The "play" program _should_ convert Sun/NeXT audio
files to SB Pro 8bit linear samples and send them to /dev/dsp.  If
you can't wait for me to finsh it (I won't be able to hack on it
until about the same time Kurt gets back). but want to play Sun/NeXT
audio samples get "SPARCstation Sound Tools" written by Jef Poskanzer
(jef@well.sf.ca.us) abd use the ulawtolinear program to convert to
16bit ASCII format, then just read each value, shift out the low byte and 
add 128, send that to /dev/sb_dsp (or modify the ulawtolinear code to
do it dirrectly).  That will play the samples just fine, but will convert the
file header to an anoying crakle.  Oh yeag, you will have to set the sample
rate to 8000 using the supplyed cdsp program.

The play program I was working on apparenytly was revealing bugs in the 
sound blaster driver's ioctl handling.

[...]
>Also, the port of the driver, or something that it interfaces to in the 386BSD
>system, seems to be pretty unstable.  Both playback of FM voices and
>digitized sounds seem to work pretty good.  Recording frequently
>crashes the system.  You gets what you pays for.

Also using anythign other then the supplyed programs to do ioctl's results
in a panic next time you do heavy disk I/O (like a make), that's what was
preventing me from finshing the play code...
-- 
           stripes@pix.com              "Security for Unix is like
      Josh_Osborne@Real_World,The          Multitasking for MS-DOS"
      "The dyslexic porgramer"                  - Kevin Lockwood
We all agree on the necessity of compromise.  We just can't agree on
when it's necessary to compromise.       - Larry Wall