Just want to clarify one minor point that has come up in a couple of posts. The audio samples are signed integers, not unsigned integers. From the LPCM Wiki:

"If the sample is 16-bit signed, the sample range is from -32768 to 32767, with a centerpoint of 0.[8] (For example, signed LPCM data is used on Audio CD, DVD Video, 16-bit LPCM in WAV, audio/L16, etc.) If the sample is 16-bit unsigned, the sample range is from 0 to 65535, with a centerpoint of 32768."

Wiki on Linear PCM

Also, it should be clear from the range value, that the signed integers make use of Two's Complement notation so that only a single value, all zeros, represents 0.

Wiki on Two's Complement

(Sample range would be -32767 to 32767 if One's Complement notation were being used and there would be two values that represent 0.)

Dan




Last edited by Dan W; 2010-04-12 22:22.

Current: Anthem MRX300, B&W Matrix 804 Front L/R, B&W Matrix HTM Center, B&W Matrix 805 Surround L/R, PS3, Squeezebox v3, Popcorn Hour A100

Retired: 568.1, 562v2, 596, 558, DSP5000 Mk1 24/96, DSP5000C Mk1 24/96