Skip to content

Commit 0546223

Browse files
committed
quick fix
1 parent 857902a commit 0546223

File tree

1 file changed

+2
-1
lines changed
  • event-queue/src/main/java/com/iluwatar/event/queue

1 file changed

+2
-1
lines changed

event-queue/src/main/java/com/iluwatar/event/queue/Audio.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ public static void update() {
132132
}
133133
Clip clip = null;
134134
try {
135+
AudioInputStream audioStream = getPendingAudio()[headIndex].stream;
135136
headIndex++;
136137
clip = AudioSystem.getClip();
137-
clip.open(getPendingAudio()[headIndex].stream);
138+
clip.open(audioStream);
138139
clip.start();
139140
} catch (LineUnavailableException e) {
140141
System.err.println("Error occoured while loading the audio: The line is unavailable");

0 commit comments

Comments
 (0)