Subject: Re: PCM8 vs. PCM16/LINEAR?
To: None <mike.long@analog.com>
From: Timothy Newsham <newsham@aloha.net>
List: tech-kern
Date: 07/31/1995 09:39:36
> >My working hypothesis has been:  PCM16/LINEAR is for 8- or 16-bit signed data;
> >PCM8 is for 8-bit unsigned data.  There is no support for 16-bit
> >unsigned data.  ULAW is for 8-bit Sun-style logarithmic encoding.  ALAW
> >is for some format I haven't tackled yet.
> 
> Sun's audio(4) states that PCM data is always signed.  Either we
> should define another symbol for unsigned data (e.g.
> AUDIO_ENCODING_ULINEAR) or require that the hardware driver be
> responsible for any necessary conversion (may be SLOW).

The amiga's native sound format is 8 bit unsigned.  It would
be nice if this was an option in the generic interface.  
As for the conversion being slow I think a simple exor with
0x80 or 0x8000 will do the trick.

> Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
> VLSI Design Engineer         finger mikel@shore.net for PGP public key