I am reading a WAV file into a byte array with the following code.
AudioInputStream inputStream =
AudioSystem.getAudioInputStream();
int numBytes = inputStream.available();
byte[] buffer = new byte[numBytes];
inputStream.read(buffer, 0, numBytes);
inputStream.close();
Is there an easy way to remove .wav headers before or after reading into a byte array?
source
share