We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857902a commit 0546223Copy full SHA for 0546223
event-queue/src/main/java/com/iluwatar/event/queue/Audio.java
@@ -132,9 +132,10 @@ public static void update() {
132
}
133
Clip clip = null;
134
try {
135
+ AudioInputStream audioStream = getPendingAudio()[headIndex].stream;
136
headIndex++;
137
clip = AudioSystem.getClip();
- clip.open(getPendingAudio()[headIndex].stream);
138
+ clip.open(audioStream);
139
clip.start();
140
} catch (LineUnavailableException e) {
141
System.err.println("Error occoured while loading the audio: The line is unavailable");
0 commit comments