Nicolas
Nicolas
I got the same behaviour with a WAV file, for both `AudioFileReader` and `WaveFileReader` What I found is that the "bits per sample" value of my file is not set...
Ok, after cloning the repo and digging into the sources, the exception that I got comes from here: https://github.com/naudio/NAudio/blob/master/NAudio/Wave/WaveFormats/WaveFormatExtraData.cs#L43 The byte array size seems to be arbitrary set to 100...
In my case, I was just trying to cut the file. So I'm opening it with `using (WaveFileReader reader = new WaveFileReader(inPath))`
Sorry for the misunderstanding. I could listen to the file with VLC so doesn't seems corrupted. Here are the info I got from afinfo tool on my Mac File type...