2001.03.28 14:50 "Bit depth", by Andrew Jarvis

2001.03.29 11:44 "Re: Bit depth", by Martí Maria

Hi,

What is required is a left shift of 5 places which is equivalent to multiplication by 65536/2048=32.

Nope, think it carefully... try those values

Max value of 11 bits: 2047 = 0x7FF, if you apply a left shif of 5 you got 65504=0xFFe0, while you should obtain maximum 16 bit value: 0xFFFF

This is a frequent mistake when converting from 8 to 16 bits, many implementations I've seen does simply shift left 8, while they should multiply by 257

Agreed about Min/Max sample values :)

Martí.