Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.IndexOutOfRangeException in LayerIIIDecoder.HuffmanDecode #28

Open
Chicken-Bones opened this issue Jun 14, 2024 · 1 comment
Open

Comments

@Chicken-Bones
Copy link

Chicken-Bones commented Jun 14, 2024

Using the following mp3 file Music_9.zip

at XPT.Core.Audio.MP3Sharp.Decoding.Decoders.LayerIIIDecoder.HuffmanDecode(Int32 ch, Int32 gr) in Core\Audio\MP3Sharp\Decoding\Decoders\LayerIIIDecoder.cs:line 923
at XPT.Core.Audio.MP3Sharp.Decoding.Decoders.LayerIIIDecoder.Decode() in Core\Audio\MP3Sharp\Decoding\Decoders\LayerIIIDecoder.cs:line 432
at XPT.Core.Audio.MP3Sharp.Decoding.Decoders.LayerIIIDecoder.DecodeFrame() in Core\Audio\MP3Sharp\Decoding\Decoders\LayerIIIDecoder.cs:line 363
at XPT.Core.Audio.MP3Sharp.Decoding.Decoder.DecodeFrame(Header header, Bitstream stream) in Core\Audio\MP3Sharp\Decoding\Decoder.cs:line 134
at XPT.Core.Audio.MP3Sharp.MP3Stream.ReadFrame() in Core\Audio\MP3Sharp\MP3Stream.cs:line 246
at XPT.Core.Audio.MP3Sharp.MP3Stream.Read(Byte[] buffer, Int32 offset, Int32 count) in Core\Audio\MP3Sharp\MP3Stream.cs:line 201
at Terraria.Audio.MP3AudioTrack.ReadAheadPutAChunkIntoTheBuffer() in C:\Work\ReLogic\source\Terraria\Terraria\Terraria\Audio\MP3AudioTrack.cs:line 43
at Terraria.Audio.ASoundEffectBasedAudioTrack.PrepareBuffer() in C:\Work\ReLogic\source\Terraria\Terraria\Terraria\Audio\ASoundEffectBasedAudioTrack.cs:line 65
at Terraria.Audio.ASoundEffectBasedAudioTrack.Update() in C:\Work\ReLogic\source\Terraria\Terraria\Terraria\Audio\ASoundEffectBasedAudioTrack.cs:line 49
at Terraria.Audio.LegacyAudioSystem.Update() in C:\Work\ReLogic\source\Terraria\Terraria\Terraria\Audio\LegacyAudioSystem.cs:line 66
at Terraria.Main.UpdateAudio() in C:\Work\ReLogic\source\Terraria\Terraria\Terraria\Main.cs:line 11709}

Note this is not a duplicate of #3

@ZaneDubya
Copy link
Owner

Thanks! I will take a look at this soon. Just recovering from a long work streak. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants