I want to loop my background music so I used
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?
GreenfootSound sn = new GreenfootSound("Soundfile.mp3"); sn.playLoop();