quick fix

This commit is contained in:
Mihály Kuprivecz 2017-05-11 21:44:07 +02:00
parent 857902ab95
commit 0546223bba

View File

@ -132,9 +132,10 @@ public class Audio {
}
Clip clip = null;
try {
AudioInputStream audioStream = getPendingAudio()[headIndex].stream;
headIndex++;
clip = AudioSystem.getClip();
clip.open(getPendingAudio()[headIndex].stream);
clip.open(audioStream);
clip.start();
} catch (LineUnavailableException e) {
System.err.println("Error occoured while loading the audio: The line is unavailable");