*BSD News Article 77488


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!cam-news-hub1.bbnplanet.com!news.mathworks.com!enews.sgi.com!decwrl!purdue!mozo.cc.purdue.edu!not-for-mail
From: willey@purdue.edu (Mark Willey)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Sound Blaster driver problems
Date: 5 Sep 1996 05:07:20 GMT
Organization: Purdue University
Lines: 26
Message-ID: <50ln68$1rb@mozo.cc.purdue.edu>
References: <50hhf9$ihf@news.et.byu.edu>
NNTP-Posting-Host: hillres55-109.cc.purdue.edu
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]

Jamie Gritton (gritton@saskatchewan.et.byu.edu) wrote:
:    I'm having trouble getting the Sound Blaster audio driver to work
: for me.  Using 1.1, it will play sounds OK as long as I open the
: device, write the waveform, and close it.  But if I open, write, wait,
: and write some more, then later sounds are partially or fully cut off.
: Also, any attempts to change the playback sampling rate fail.
:    With the current sources, I can at least change the playback rate,
: bit the sounds still go away after a pause, and always have this
: "snap-crackle-pop" over them, like the entire wave isn't being written
: at once.
:    Am I mistaken in thinking that all I need to do is open /dev/sound,
: set the sampling rate and data format, write the data, and call the
: drain ioctl?  Is this a known problem with the SB driver, or am I just
: doing something wrong?

What version of soundblaster do you have?  I'm currently working on the 
SB16 extensions to the driver.  You can get the latest tar of my effort 
from http://purcell.ecn.purdue.edu/~willey/projects/sb16  On that page, you
can find some apps that you can use to get "pretty good" playback and 
record.  The driver is not yet that much better - the next major thing I 
need to accomplish is to get the ioctls to actually change the mixer 
values.  Right now, the ioctls will just use the old mixer interface, and  
the only mixer settings using the ct1745 registers are in the init...

Mark