This project has moved. For the latest updates, please go here.
1

Resolved

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

description

One more exception which occures with some files. With this file it happens immediately after starting playback.

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: count
at NLayer.Decoder.BitReservoir.SkipBits(Int32 count)
at NLayer.Decoder.Huffman.DecodeSymbol(BitReservoir br, Int32 table)
at NLayer.Decoder.Huffman.Decode(BitReservoir br, Int32 table, Single& x, Single& y)
at NLayer.Decoder.LayerIIIDecoder.ReadSamples(Int32 sfBits, Int32 gr, Int32 ch)
at NLayer.Decoder.LayerIIIDecoder.DecodeFrame(IMpegFrame frame, Single[] ch0, Single[] ch1)
at NLayer.MpegFrameDecoder.DecodeFrameImpl(IMpegFrame frame, Array dest, Int32 destOffset)
at NLayer.MpegFrameDecoder.DecodeFrame(IMpegFrame frame, Byte[] dest, Int32 destOffset)
at NLayer.NAudioSupport.Mp3FrameDecompressor.DecompressFrame(Mp3Frame frame, Byte[] dest, Int32 destOffset)
at NAudio.Wave.Mp3FileReader.Read(Byte[] sampleBuffer, Int32 offset, Int32 numBytes)
at NAudio.Wave.WaveOutBuffer.OnDone()
at NAudio.Wave.WaveOutEvent.DoPlayback()
at NAudio.Wave.WaveOutEvent.PlaybackThread()

comments

ioctlLR wrote Sep 11, 2014 at 10:16 PM

This was due to the bugs in the BitReservoir