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.

This commit is contained in:
Manevolent
2018-08-16 10:12:05 -04:00
parent 83e59ab6e9
commit 3898f2658c
@@ -1100,6 +1100,14 @@ public abstract class AbstractTeamspeakClientSocket
this.bufferEnd = new Pair<>(0, windowSize - 1); this.bufferEnd = new Pair<>(0, windowSize - 1);
} }
public Pair<Integer, Integer> getBufferStart() {
return bufferStart;
}
public Pair<Integer, Integer> getBufferEnd() {
return bufferEnd;
}
@Override @Override
public int getGeneration(int packetId) { public int getGeneration(int packetId) {
packetId %= generationSize; packetId %= generationSize;