byte array to short array and back again in java

后端 未结 6 1619
时光取名叫无心
时光取名叫无心 2020-11-27 03:50

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

6条回答
  •  执念已碎
    2020-11-27 04:37

    It looks like you are swapping the byte order between reading the bytes in and writing them back out (unsure if this is intentional or not).

提交回复
热议问题