Byteswapping code for sound engine on big-endian systems