From 3898f2658c6bdb9ea5c241c059949bccaec3d62c Mon Sep 17 00:00:00 2001 From: Manevolent Date: Thu, 16 Aug 2018 10:12:05 -0400 Subject: [PATCH] Expose the remote counter's features for discerning buffer beginning and end. I need this because my bot will be decoding audio for speech recognition. --- .../socket/client/AbstractTeamspeakClientSocket.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/github/manevolent/ts3j/protocol/socket/client/AbstractTeamspeakClientSocket.java b/src/main/java/com/github/manevolent/ts3j/protocol/socket/client/AbstractTeamspeakClientSocket.java index d21db8e..62aedf2 100644 --- a/src/main/java/com/github/manevolent/ts3j/protocol/socket/client/AbstractTeamspeakClientSocket.java +++ b/src/main/java/com/github/manevolent/ts3j/protocol/socket/client/AbstractTeamspeakClientSocket.java @@ -1100,6 +1100,14 @@ public abstract class AbstractTeamspeakClientSocket this.bufferEnd = new Pair<>(0, windowSize - 1); } + public Pair getBufferStart() { + return bufferStart; + } + + public Pair getBufferEnd() { + return bufferEnd; + } + @Override public int getGeneration(int packetId) { packetId %= generationSize;