naudio 1.7.3, WaveFileWriter class,
method override void Write(byte[] data, int offset, int count)
if (outStream.Length + count > UInt32.MaxValue)
throw new ArgumentException("WAV file too large", "count");
this causes drammatical performance degradation (checking stream length) for byte by byte writing, especially when output stream is located at network location.
Someone who uses Write() shall be conscious of file system limitations, IMHO this is not good place to do this, it should be before use of Write() method
method override void Write(byte[] data, int offset, int count)
if (outStream.Length + count > UInt32.MaxValue)
throw new ArgumentException("WAV file too large", "count");
this causes drammatical performance degradation (checking stream length) for byte by byte writing, especially when output stream is located at network location.
Someone who uses Write() shall be conscious of file system limitations, IMHO this is not good place to do this, it should be before use of Write() method