1 package micropolisj.util;
22 import java.io.BufferedInputStream;
23 import java.io.FileInputStream;
24 import java.io.FileNotFoundException;
27 import javazoom.jl.player.advanced.AdvancedPlayer;
28 import javazoom.jl.player.advanced.PlaybackEvent;
29 import javazoom.jl.player.advanced.PlaybackListener;
31 public class MP3 extends PlaybackListener {
47 this(url.toString().substring(5),
loop);
74 BufferedInputStream bis =
new BufferedInputStream(
new FileInputStream(
filename));
75 AdvancedPlayer p =
new AdvancedPlayer(bis);
86 System.out.println(
"Problem with file " +
filename);
87 System.out.println(e);
102 System.err.println(e);