I\'m having some issues taking audio data stored in a byte array, converting it to a big-endian short array, encoding it, then changing it back into a byte array. Here is wh
byte[2] bytes; int r = bytes[1] & 0xFF; r = (r << 8) | (bytes[0] & 0xFF); short s = (short)r;