WaveFileWriter appears broken

Aug 6, 2010 at 3:49 AM

Hi Mark,

Forgive me if this is not the place to discuss the current development branch... but I noticed after downloading the latest source that the WaveFileWriter class doesn't seem to write the length of the Wave data correctly. In v1.3, the WaveFileWriter.WriteData methods all increment the dataChunkSize member as data is written. However, under the current development version, only the WriteData() overload that accepts byte[] data correcltly updates the dataChunkSize member. The WriteData() overloads that accept short[] and float[][] and the new WriteSample() method do not update the dataChunkSize - as far as I can tell, this results in an incorrect header being written to the file, with the resulting wave file indicating a length of 0 sec.

Is this an oversight? or have a misunderstood the intention of the recent changes to WaveFileWriter?




Aug 9, 2010 at 10:10 AM

thanks for reporting. I'll have a look into it. I can't remember off the top of my head what changes were made to WaveFileWriter since the last release


Sep 8, 2010 at 10:43 AM

sorry was really slow to fix this. I think it got introduced in a patch. I've checked in a fix today