Re: How to interpret WAV data?



Iain wrote:

On Wed, 18 May 2005 18:42:59 +0200, Alessandro Angeli [MVP::DigitalMedia]
wrote:

Iain wrote:

If you know that your data is 8 bit mono, it will be
stored as a sequence of signed bytes.

UNSIGNED bytes, not signed :-)

If it were 16 bit stereo it would be stored as pairs of
signed shorts.


Surely the values go +/- zero?

No. 8 bit PCM is unsigned, with 127 the 'zero' level.

So FF == -1 and so on.  And if cast to a
larger integer value the sign bit should be extended?

Iain

-- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com

.