This site requires JavaScript, please enable it in your browser!
Greenfoot back
moobe
moobe wrote ...

2013/1/28

Sound error

moobe moobe

2013/1/28

#
Hi, every 10 minutes I get this error:
Exception in thread "SoundStream:file:/G:/Rette%20Weihnachten/sounds/Boss.mp3" java.lang.ArrayIndexOutOfBoundsException: 580
	at javazoom.jl.decoder.LayerIIIDecoder.huffman_decode(LayerIIIDecoder.java:795)
	at javazoom.jl.decoder.LayerIIIDecoder.decode(LayerIIIDecoder.java:278)
	at javazoom.jl.decoder.LayerIIIDecoder.decodeFrame(LayerIIIDecoder.java:219)
	at javazoom.jl.decoder.Decoder.decodeFrame(Decoder.java:147)
	at greenfoot.sound.Mp3AudioInputStream.read(Mp3AudioInputStream.java:230)
	at greenfoot.sound.SoundStream.run(SoundStream.java:302)
	at java.lang.Thread.run(Thread.java:722)
What does the second line "java.lang.ArrayIndexOutOfBoundsException: 580" mean? I have no idea, what the problem is, because Greenfoot is able to play and loop my sound...
danpost danpost

2013/1/28

#
That message usually means that you have information tags in your music file that needs to be removed. Open the file in a music editor and re-save it specifying that the tags not be saved.
tylers tylers

2013/1/28

#
i was wondering, is this a bug in greenfoot?
moobe moobe

2013/1/28

#
What is an information tag? And why is Greenfoot not able to handle it? Thanks for your help.
kiarocks kiarocks

2013/1/29

#
An information tag is a thing in mp3's containing the artist, song name, album and many other things. It's not handled properly by the mp3 decoder that Greenfoot uses for a reason I do not know.
danpost danpost

2013/1/29

#
For clarification on this type error, refer to this discussion.
You need to login to post a reply.