Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Release build of NAudio 1.5

$
0
0
I have a problem with a .wav-file that has an invalid chunk length in its header. In the WaveFileReader.cs the section
                if (chunkLength < 0 || chunkLength > stream.Length - stream.Position)
                {
                    Debug.Assert(false, String.Format("Invalid chunk length {0}, pos: {1}. length: {2}",
                        chunkLength, stream.Position, stream.Length));
                    // an exception will be thrown further down if we haven't got a format and data chunk yet,
                    // otherwise we will tolerate this file despite it having corrupt data at the end
                    break;
                }
causes a popup-window because of the debug assertion. However, the .wav-file can be played without a problem. So I guess NAudio 1.5 is a debug-build. Is it possible to deliver NAudio 1.5 as a release-build instead of the debug version? That would help a lot.

Thanks & Best regards
Kay

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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