1

Resolved

IndexOutOfRangeException while playing some tracks

description

I have one another problem with playing some mp3.
System.IndexOutOfRangeException: "Index was outside the bounds of the array."
at NLayer.Decoder.LayerIIIDecoder.Dequantize(Int32 idx, Single val, Int32 gr, Int32 ch)
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()

File for example

Exception ocures at the begging of file and causes PlaybackStopped event

comments

ioctlLR wrote Sep 11, 2014 at 10:15 PM

This was due to the bugs in the BitReservoir