Date: Tue, 24 Jun 1997 16:26:02 -0700 (PDT) From: ron@cts.com To: kent@erlang.ericsson.se Cc: Kent Boortz <kent@erlang.ericsson.se>, freebsd-questions@FreeBSD.ORG Subject: RE: How to make FreeBSD output sound? Message-ID: <XFMail.970624165003.ron@cts.com> In-Reply-To: <199706242224.AAA21442@townsend.ericsson.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Me too. I have an Intel Tuscon with integrated Yamaha OPL3. I told config
to add a snd0 controller, an opl0 device and made a new kernel. I even made an
inode or two. BFD! I can't even cat a file to the /dev/audio device (jeez, I've
worked up such a lather that I don't even remember what it actually did).
Looking at the driver source is futile w/o some kind of hardware documentation.
I hope no one suggests reading the touted documentation source file; it isn't
worth a bag of xapa! I would love to see someone who has made this stuff work
document what thay did. I would be glad to turn it into something that could be
used as a 'sound users' guide' or some/such doc.
Golly! I haven't gotten this worked-up since Fibber McGee opened his closet!
Ron McDaniels
"I'm getting way too old for this stuff..."
On 25-Jun-97 Kent Boortz wrote:
>>
>I have a portable with built in SoundBlaster Pro compatible (ESS)
>sound card. Seems to work. I can do
>
> % cat somesound.au > /dev/audio
>
>and it is output to the speaker.
>
>But I can't find any documentation *how* to work with sound on FreeBSD.
>
> - Are there any other devices that I can use to play
> sampled sound (not MIDI)? What file format?
>
> - How about different sample frequences? Do I need to
> configure the device? If so, how?
>
>I have a C program that works on a SparcStation that write small sound
>samples to the "/dev/audio" with "write()". Problem is when I run it
>under FreeBSD it don't output any sound directly when it is written.
>It seem to buffer it for a while until it got some more data and then
>output it to the speaker. To my knowledge "write()" is unbuffered (The
>only call I could find that flushes a write on a file descriptor was
>"fsync()" so I tried it just in case but it didn't help).
>
>Do you know what is going on? Any pointers to documentation?
>
>It may be the case that I lack the basic understanding on devices
>and device configuration. Any pointers?
>
>/kgb
----------------------------------
E-Mail: ron@cts.com
Date: 06/24/97
Time: 16:26:18
This message was sent by XF-Mail
----------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970624165003.ron>
