This discussion is archived
3 Replies Latest reply: Jan 2, 2013 10:48 AM by 982560 RSS

little endian ,big endian when I read data through AudioInputStream?

982427 Newbie
Currently Being Moderated
I am reading a wav file through AudioInputStream into a byte array,

AudioInputStream audiofile = AudioSystem.getAudioInputStream(f);
byte[] audio=new byte[numberofframes*framesize];

do I need to arrange the bytes of a sample considering that the data is arranged in little endian or does the AudioInputStream do it for me?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points