// play the MP3 file to the sound card
public static void playFile(final String url) {
Thread th = new Thread() {
@Override
public void run() {
Player player = null;
try {
FileInputStream fis = new FileInputStream(settings.SoundPath + url);
BufferedInputStream bis = new BufferedInputStream(fis);
player = new Player(bis);
} catch (Exception e) {
System.out.println("Problem playing file " + settings.SoundPath + url);
e.printStackTrace();
}
try {
player.play();
} catch (JavaLayerException e) {
e.printStackTrace();
}
}
};