The chunk size must be 8 bytes smaller than the file as the chunk size does not include the header. So in your example where these two sizes are the same, the file is 8 bytes too small.
Header Chunk Size Error for Wav File
Question
I'am using these methos in order to read wav files: http://www.labbookpages.co.uk/audio/javaWavFiles.html
It give me an error at
WavFile wavFile = WavFile.openWavFile(file);
WavFileException: Header chunk size (48255020) does not match file size (48255020)
However it is not always, when I tried to use different wav files sometimes it is not causing any error.
Is it caused from the wav file or openWavFile method, and can I fix this without changing any WavFile codes.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow