Great code base - thanks alot for the good work!!
Found a small bug in WaveFormatConversionStream:
<code>
// we have been returned something that cannot be converted - a partial
// buffer. We will increase the size we supposedly read, and zero out
// the end.
sourceBytesRead -= (sourceBytesRead % sourceStream.BlockAlign);
sourceBytesRead += sourceStream.BlockAlign; //<- !!! THIS LINE IS INVALID - it will make the sourceBytesRead go beyond valid data. It can simply be removed
silenceBytes = SourceToDest(sourceStream.BlockAlign);
</code>
Comments: code in question no longer exists
Found a small bug in WaveFormatConversionStream:
<code>
// we have been returned something that cannot be converted - a partial
// buffer. We will increase the size we supposedly read, and zero out
// the end.
sourceBytesRead -= (sourceBytesRead % sourceStream.BlockAlign);
sourceBytesRead += sourceStream.BlockAlign; //<- !!! THIS LINE IS INVALID - it will make the sourceBytesRead go beyond valid data. It can simply be removed
silenceBytes = SourceToDest(sourceStream.BlockAlign);
</code>
Comments: code in question no longer exists