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?
framesize
What is the value of that? If1
, endian is not relevant. If4
, it is. – Lipase1,
2` or4
. – Lipase