Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Sound card driver data formats

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  Nvidia kernel module  
Author Message
Alan Crowe

External


Since: Jul 30, 2004
Posts: 1



(Msg. 1) Posted: Fri Jul 30, 2004 6:03 pm
Post subject: Sound card driver data formats
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

I want to play synthetic sounds through my sound card. I've
recompiled the kernel and made the devices. The sound card
is working.

cat /kernel > /dev/dsp clicks and hisses as expected.

I've written a program to generate a ramp, but is sounds
wrong, and my oscilloscope shows that the waveform is bent.
I assumed that /dev/dsp was 8-bit unsigned linear. Maybe it
is mu-law or A-law? What about dspW? Is it 16 bit linear?
What about stereo? Do I send alternate 16 words to alternate
channels? dsp seems to be mono.

dmesg say sbc0 <ESS 688> at port 0x220-0x22f irq 5 drq 1
flags 0x15 on isa

Do the drivers abstract away differences between cards, or
do I need to know what my particular card does?

Are the technical details written down somewhere? The
FreeBSD handbook and the driver manual pages are written
from the perspective of setting up the sound card to use
with a program that some-one else has written for you. It
misses out the format information that you need to write
such a program yourself. There is stuff on IOCTLs in a
soundcard.h. There is plenty of information, 1300 lines of
it, but it assumes a lot of background information I don't
have, such as actual data formats. It will take me days
to work it out with by trial and error.

Does anyone have a webpage with the format details?

Alan Crowe
Edinburgh
Scotland

 >> Stay informed about: Sound card driver data formats 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Second NIC card as failover - Hello, I am using FreeBSD 5.1 and would like to have two network cards in our FreeBSD server connected to the same network. The first network card will be always used for all traffic. The second network card will be only used in case the first network...

Netgear MA111 wifi card with Project Evil - Hi, I'm trying to use my Netgear MA111 wireless USB card in FreeBSD. As I understand, FreeBSD's wi module does not support it (OpenBSD's does). Therefore, I decided to check out NDISulator ("Project Evil"). I followed the instructions in the...

Sound not working with FreeBSD - Hi all, I used the info in the FreeBSD handbook to reinstall the kernel with extra 'device pcm' option to get my sound blaster live sound card to work. Also did cd /dev; sh MAKEDEV snd0 too. But there is still no sound from xmms and mplayer. Wondering....

Sound on Dell Optiplex GX1 - Hi, I have a Dell Optiplex GX1 which has a Crystal CS4236B sound chip. I know the hardware is not faulty because it works in Windows (perhaps not the best test but its all I have). However, I can't get it to work in FreeBSD 5.2 The man page for pcm say...

sound works with kldload, but not /boot/loader.conf? - Hi, I just tried playing a WAV file using xmms (this is the first time I've tried anything with sound on my installation). It issued a very generic error message, telling me things like "make sure your device is installed". I did some res...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]