I have pcm audio stored in a byte array. It is 16 bits per sample. I want to make it 8 bit per sample audio.
Can anyone suggest a good algorithm to do that?
byteData = (byte) (((shortData +32768)>>8)& 0xFF)
this worked for me.