*BSD News Article 46277


Return to BSD News archive

#! rnews 2611 sserve.cc.adfa.oz.au
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!uunet!in1.uu.net!rose.uthscsa.edu!not-for-mail
From: djimenez@rose.uthscsa.edu (Daniel Angel Jimenez)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Sound apps for FreeBSD?
Date: 29 Jun 1995 16:27:30 -0500
Organization: University of Texas Health Science Center at San Antonio
Lines: 44
Message-ID: <3sv5s2$7s4@rose.uthscsa.edu>
References: <3sei3m$j65@ecl.wustl.edu> <3sgqs0$68r@pdq.coe.montana.edu> <3sv14t$duh@ecl.wustl.edu>
NNTP-Posting-Host: rose.uthscsa.edu

In article <3sv14t$duh@ecl.wustl.edu>,
Brian L Gottlieb <brian@beru.wustl.edu> wrote:
>Dan Dartman (uffda@fubar.cs.montana.edu) wrote:
>: I'd like to know what to use too.  I'm not sure there is a prog for playing
>: *.au files, which is what I need.  You might try this: cat soundfile >
>: /dev/audio, which is supposed to work.  I get very loud scratchy static, you
>: might have more luck.
>
>Well, I tried this.  My machine does not have a /dev/audio on it.  Go 
>figure.  On to my next question:
>
>What device should I be using for audio? (guess you saw that coming, huh?)
>
>I've looked through the FAQ and handbook and everything else I could think
>of to no avail.
>
>brian

Hi, I just got into FreeBSD last week (had to move from Linux because my
NCR PCI SCSI card gets better performance in FreeBSD).  After looking around 
some, I found (looking at the /dev/MAKEDEV script) that the major device 
number for the sound devices is 30, and the minor number for /dev/dsp
(I guess the same as /dev/audio) is 3.  So if you do:

# mknod /dev/audio c 30 3

that ought to do it.  You also have to make sure your kernel is compiled
to use the sound devices; look in /usr/src/sys/i386/conf/LINT (grep
for snd) for these devices, configure them for your hardware, and 
recompile your kernel.  Also, my SoundBlaster is on IRQ 7; make sure you
comment out lpt0 (which uses IRQ 7 also) in the config file before you
recompile if your soundcard is the same way.

Also, the Linux program 'vplay' compiles clean under FreeBSD if you change
it to #include <machine/soundcard.h> instead of the linux soundcard.h file.
'vplay' is part of the 'sndkit' package available at Linux ftp sites; you
can use it to play and record .wav and .voc files (take this with a grain
of salt, I haven't tried it out with FreeBSD yet, just got it to compile).

Hope this helps...
-- 
Daniel Jimenez                     djimenez@rose.uthscsa.edu
"I've so much music in my head" -- Maurice Ravel, shortly before his death.
"                             " -- John Cage