John Kennedy Haringa Peña
John Kennedy Haringa Peña
i also experienced this. i think this is both a game and aum bug conflicting each other, resulting on getting stuck and freeze on the loading screen. i think here's...
public static void playSong (File file){ try { // ----------------------Open the Media System.out.println("Opening ..."); streamPlayer.open(file); // ---------------------- Play the Media System.out.println("Starting to play ..."); streamPlayer.play(); } catch (StreamPlayerException e) {...
edit: how to make the audio play at zero latency after running streamPlayer.play()?
ok i'll try the thread wait trick, also what i mean about slick2d, Slick2D Music class has zero latency, by loading the whole file once, then if you want to...
i think openal/slick2d doesn't load the file into the memory (ram), instead it just play the file directly from the hard drive, i noticed loading 20 music files will load...