I'm reading a .wav file into a byte array with the following code.
AudioInputStream inputStream =
AudioSystem.getAudioInputStream(/*my .wav file */);
int numBytes = inputStream.available();
byte[] buffer = new byte[numBytes];
inputStream.read(buffer, 0, numBytes);
inputStream.close();
Is there a simple way to remove the .wav headers either before or after reading into the byte array?