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

2013/1/23

sound problem

bonana bonana

2013/1/23

#
I want to loop my background music so I used
GreenfootSound sn = new GreenfootSound("Soundfile.mp3");
sn.playLoop();
but everytime the song ends it doesn't repeat but gives me the following error message: Exception in thread "path-of-soundfile" java.lang.ArrayIndexOutOfBoundsException: 580 What does that mean and how can I fix it?
Gevater_Tod4711 Gevater_Tod4711

2013/1/23

#
This exception is in a sound API and you just cant fix it. But this exception is caught so it isn't stopping your game. In an executable version (a jar file) the exception will not be printet. The problem probably is that in this API the exception is caught and is printed out what is a bugg in this API. And because you can't change the code of this API you can't fix the bugg.
danpost danpost

2013/1/23

#
You may have some information tags in your sound file. Try re-saving the file making sure that they are not included.
You need to login to post a reply.