From owner-freebsd-questions Tue Jun 24 16:18:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA12961 for questions-outgoing; Tue, 24 Jun 1997 16:18:53 -0700 (PDT) Received: from thor.i-connect.net (qmailr@thor.i-Connect.Net [206.190.143.254]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id QAA12951 for ; Tue, 24 Jun 1997 16:18:49 -0700 (PDT) Received: (qmail 3915 invoked by uid 4028); 24 Jun 1997 23:50:23 -0000 Message-ID: X-Mailer: XFMail 0.5-alpha [p0] on Linux Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <199706242224.AAA21442@townsend.ericsson.se> Date: Tue, 24 Jun 1997 16:26:02 -0700 (PDT) From: ron@cts.com To: kent@erlang.ericsson.se Subject: RE: How to make FreeBSD output sound? Cc: Kent Boortz , freebsd-questions@FreeBSD.ORG Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 ----------------------------------