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

2013/9/9

Sound

dominicarrojado dominicarrojado

2013/9/9

#
What does this mean?
Exception in thread "SoundStream:file:/C:/Users/Arrojado/Downloads/Stage%20Boss%20-%20Copy/sounds/bodies.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)
dominicarrojado dominicarrojado

2013/9/9

#
How to fix this? Xd
dominicarrojado dominicarrojado

2013/9/9

#
It shows every time the song is finish.
danpost danpost

2013/9/9

#
It probably means you have information tags in the sound file that the GreenfootSound class does not account for (it does not account for any of them). Re-save the sound file without the information tags and it should run fine.
You need to login to post a reply.