writing a program to read .au files using oss function calls

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

writing a program to read .au files using oss function calls

Postby deansalv » Thu Mar 08, 2007 4:31 am

Hello;
I'm writing a sound driver for xboing to run on my E-450. I can get it to put out scratchy sounds but am probably doing something wrong. I have tested the S16_BE and LE formats also the 8 bit formats so far. I noticed the .au files also contain a message header.
Does the header have to be skipped then or read?
What would the buffer size be when reading the file using the binary method?
What would be a good buffer size to read the data and write it to /dev/dsp?

This is my first time writing a device driver. OSS sure makes it easy to get this far.
Thanks again for great software!
Help is always appreciated.

Thank you all in advance.

Dean S.
deansalv
New Member
 
Posts: 8
Joined: Fri Dec 29, 2006 8:00 pm
Location: Portland, Oregon

Re: writing a program to read .au files using oss function c

Postby dev » Thu Mar 08, 2007 5:43 am

deansalv wrote:Hello;
I'm writing a sound driver for xboing to run on my E-450. I can get it to put out scratchy sounds but am probably doing something wrong. I have tested the S16_BE and LE formats also the 8 bit formats so far. I noticed the .au files also contain a message header.
Does the header have to be skipped then or read?
What would the buffer size be when reading the file using the binary method?
What would be a good buffer size to read the data and write it to /dev/dsp?

This is my first time writing a device driver. OSS sure makes it easy to get this far.
Thanks again for great software!
Help is always appreciated.

Thank you all in advance.

Dean S.


Hi,

With AU format, you absolutely have to read the header and parse it.

If you get the old OSS 3.99 version, the source code for ossplay (that parses .au files is available) or you can search around on the net for au file players.


best regards
Dev Mazumdar
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA


Return to Solaris

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron