This project has moved and is read-only. For the latest updates, please go here.

Corrupt WAV header

Aug 14, 2012 at 8:33 PM

Hi im trying to create a 24-bit WAVE file following the last example given by Mark here:

Sound Code: How to Use WaveFileWriter

The wave data generates as it should by the loop, but the resulting wavfile is only OK to open in VLC, all other programs flags for corrupt wave file header. (WaveLab 6, MediaPlayer, Quicktime, etc.)

Any suggestions why the header could be corrupt? (this is true for both 16/24-bit wave files)

Regards Jonas

Aug 17, 2012 at 9:07 PM

I'm not sure what you mean by corrupt. You would need to compare the WAV header created by NAudio, with one with the same format created by a different program that does play correctly in these programs. Then you can use the WaveFileReader to read both and see what the differences are.