Release build of NAudio 1.5

May 15, 2013 at 7:56 AM
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
Coordinator
May 15, 2013 at 8:40 AM
hi Kay, I'd recommend switching to NAudio 1.6 which is a release build. If you really must have 1.5, then rebuild the source in Release mode.
May 15, 2013 at 8:43 AM
Hi Mark, I can switch to 1.6 also. I just didn't know that 1.6 is a release-build.

Thanks a lot!
Kay