mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-05 23:46:17 +00:00
dynamically increase the buffer size if we build up to large of a queue
This commit is contained in:
@@ -24,6 +24,14 @@ public class SoundBuffer {
|
||||
bufferList.addLast(buff);
|
||||
}
|
||||
|
||||
public int size() {
|
||||
int size = 0;
|
||||
for (ShortBufferDescriptor desc : bufferList) {
|
||||
size += desc.length;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public int fill(byte[] data, int offset, int length) {
|
||||
int filled = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user