Well, this isn't really a "work-around", but...
All you should have to do is make ioctl calls to change the sample format.
It's all documented in the OSS programmers guide.
As for why it switched on you in the first place... I have no idea.
--Paco
On Mon, 22 May 2000, Dave Mielke wrote:
> When /dev/audio is opened, it's supposed to start with the sound format set to
> mulaw (Sun .snd format). When I open it for read/write (O_RDWR), however, it
> appears that it switches to unsigned 8-bit linear. Does anyone know what the
> cause of this switch in format is, and how, if at all, it can be worked around?
>
> --
> Dave Mielke | 856 Grenon Avenue | I believe that the Bible is the
> Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
> EMail: [EMAIL PROTECTED] | Canada K2B 6G3 | if you're concerned about Hell.
>