Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qpi committed May 11, 2017
1 parent 857902a commit 0546223
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ public static void update() {
}
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");
Expand Down

0 comments on commit 0546223

Please sign in to comment.