You decode Alaw into PCM, which is 16 BitsPerSample - that's why you end up with an array of short
s.
You could use Buffer.BlockCopy()
to copy them into a byte[]
:
byte[] result = new byte[shortArray.Length * sizeof(short)];
Buffer.BlockCopy(shortArray, 0, result, 0, result.Length);