3 Replies Latest reply: Jan 2, 2013 12:48 PM by 982560 RSS

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

    982427
      I am reading a wav file through AudioInputStream into a byte array,

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


      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?