buffer revert

This commit is contained in:
NoobishSVK
2024-07-15 22:44:23 +02:00
parent ae953deb00
commit f780e6b997
+1 -1
View File
@@ -103,7 +103,7 @@ class StreamServer {
OnStdInData(buffer) {
this.Buffer = Buffer.concat([this.Buffer, buffer]);
if (this.Buffer.length >= 1) { // Adjust the buffer size as needed
if (this.Buffer.length >= 8192) { // Adjust the buffer size as needed
this.SendAudioData(this.Buffer);
this.Buffer = Buffer.alloc(0);
}