|
|
@ -106,11 +106,11 @@ public class MusicHandler implements AudioSendHandler, Closeable, Consumer<Song> |
|
|
|
currentSong = null; |
|
|
|
currentSong = null; |
|
|
|
} |
|
|
|
} |
|
|
|
currentSong = songQueue.poll(); |
|
|
|
currentSong = songQueue.poll(); |
|
|
|
|
|
|
|
if (nowPlayingConsumer != null) |
|
|
|
|
|
|
|
nowPlayingConsumer.accept(currentSong); |
|
|
|
if (currentSong == null) |
|
|
|
if (currentSong == null) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
System.out.println("Playing song " + currentSong.getLocation().getAbsolutePath()); |
|
|
|
System.out.println("Playing song " + currentSong.getLocation().getAbsolutePath()); |
|
|
|
if (nowPlayingConsumer != null) |
|
|
|
|
|
|
|
nowPlayingConsumer.accept(currentSong); |
|
|
|
|
|
|
|
arrayErr = false; |
|
|
|
arrayErr = false; |
|
|
|
in = AudioSystem.getAudioInputStream(currentSong.getLocation()); |
|
|
|
in = AudioSystem.getAudioInputStream(currentSong.getLocation()); |
|
|
|
AudioFormat decodedFormat = AudioSendHandler.INPUT_FORMAT; |
|
|
|
AudioFormat decodedFormat = AudioSendHandler.INPUT_FORMAT; |
|
|
|