Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Closed Issue: (bug changeset 28539) Blockalign in WaveFormatConversionStream [10548]

$
0
0
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

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>