I play the file like this:
public static void play(String filename) { FileInputStream fis = null; try { fis = new FileInputStream(filename); AudioStream audioStream = new AudioStream(fis); AudioPlayer.player.start(audioStream); } catch (Exception ex) { throw new RuntimeException(ex); } Utils.streamClose(fis); } Project test (JUnit 4). If I create a file with main and run it as a Java Application, it plays. If I put it inside the dough, no. The exception does not throw. What is interesting, if you run the test under debugging and take steps, it also plays (and if you just go inside play ()).
What can be wrong?