You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.IndexOutOfRangeException
HResult=0x80131508
Message=索引超出了数组界限。
Source=MP3Sharp
StackTrace:
at MP3Sharp.Decoding.Decoders.LayerI.SubbandLayer1.ReadAllocation(Bitstream stream, Header header, Crc16 crc) in C:\Users\mikir\Source\Repos\MP3Sharp\MP3Sharp\Decoding\Decoders\LayerI\SubbandLayer1.cs:line 69
at MP3Sharp.Decoding.Decoders.LayerIDecoder.ReadAllocation() in C:\Users\mikir\Source\Repos\MP3Sharp\MP3Sharp\Decoding\Decoders\LayerIDecoder.cs:line 87
at MP3Sharp.Decoding.Decoders.LayerIDecoder.DecodeFrame() in C:\Users\mikir\Source\Repos\MP3Sharp\MP3Sharp\Decoding\Decoders\LayerIDecoder.cs:line 47
at MP3Sharp.Decoding.Decoder.DecodeFrame(Header header, Bitstream stream) in C:\Users\mikir\Source\Repos\MP3Sharp\MP3Sharp\Decoding\Decoder.cs:line 134
at MP3Sharp.MP3Stream.ReadFrame() in C:\Users\mikir\Source\Repos\MP3Sharp\MP3Sharp\MP3Stream.cs:line 246
at MP3Sharp.MP3Stream.Read(Byte[] buffer, Int32 offset, Int32 count) in C:\Users\mikir\Source\Repos\MP3Sharp\MP3Sharp\MP3Stream.cs:line 201
at ConsoleApp1.Program.Main(String[] args) in C:\Users\mikir\source\repos\MP3Sharp\ConsoleApp1\Program.cs:line 22
Test code Program.cs
usingMP3Sharp;usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceConsoleApp1{internalclassProgram{staticvoidMain(string[]args){usingvarstream=newMP3Stream(@"F:\track.mp3");// Create the buffer.varbuffer=newbyte[4096];// read the entire mp3 file.intbytesReturned=1;inttotalBytesRead=0;while(bytesReturned>0){bytesReturned=stream.Read(buffer,0,buffer.Length);totalBytesRead+=bytesReturned;}// close the stream after we're done with it.stream.Close();}}}
at XPT.Core.Audio.MP3Sharp.Decoding.Decoders.LayerI.SubbandLayer1Stereo.ReadAllocation(Bitstream stream, Header header, Crc16 crc)
at XPT.Core.Audio.MP3Sharp.Decoding.Decoders.LayerIDecoder.ReadAllocation()
at XPT.Core.Audio.MP3Sharp.Decoding.Decoders.LayerIDecoder.DecodeFrame()
at XPT.Core.Audio.MP3Sharp.Decoding.Decoder.DecodeFrame(Header header, Bitstream stream)
at XPT.Core.Audio.MP3Sharp.MP3Stream.ReadFrame()
at XPT.Core.Audio.MP3Sharp.MP3Stream.set_Position(Int64 value)
Test code Program.cs
track.zip
The text was updated successfully, but these errors were encountered: