I have this type of file: 8000Hz, 8 bits per sample, 64 Kbps, stereo, A-law wav file. I need to decode the alaw compression to 16 bit pcm linear encoding.
I used a lookup table for this from this site http://hazelware.luggle.com/tutorials/mulawcompression.html which gives signed decimal numbers from -32768 to 32767 which corespond to 16 bit signed binary number.
So I can convert signed decimal to signed 16 binary number but how to get left and right channel bytes. As a signed bytes or unsigned bytes?
Or should I convert the signed 16 bit number to unsigned and then get the left and right bytes as unsigned?