|
|
|
@ -24,7 +24,7 @@ public class MusicHandler implements AudioSendHandler, Closeable |
|
|
|
|
private QueueManager queueManager; |
|
|
|
|
// private final LinkedList<Song> songQueue = new LinkedList<>();
|
|
|
|
|
// private final Queue<byte[]> queue = new ConcurrentLinkedQueue<>();
|
|
|
|
|
private final CircularByteBuffer audioBuffer = new CircularByteBuffer(3840 * 1024); |
|
|
|
|
// private final CircularByteBuffer audioBuffer = new CircularByteBuffer(3840 * 1024);
|
|
|
|
|
private boolean shouldPlay = true; |
|
|
|
|
private int byteCount; |
|
|
|
|
|
|
|
|
@ -84,7 +84,8 @@ public class MusicHandler implements AudioSendHandler, Closeable |
|
|
|
|
if (immediate) |
|
|
|
|
{ |
|
|
|
|
System.out.println("Immediate next - clearing buffer"); |
|
|
|
|
audioBuffer.clear(); |
|
|
|
|
player = null; |
|
|
|
|
// audioBuffer.clear();
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try |
|
|
|
|