1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

hotfix for audio buffer length

This commit is contained in:
NoobishSVK
2024-07-15 22:42:59 +02:00
parent 1f82a2bde5
commit ae953deb00

View File

@@ -103,7 +103,7 @@ class StreamServer {
OnStdInData(buffer) {
this.Buffer = Buffer.concat([this.Buffer, buffer]);
if (this.Buffer.length >= 8192) { // Adjust the buffer size as needed
if (this.Buffer.length >= 1) { // Adjust the buffer size as needed
this.SendAudioData(this.Buffer);
this.Buffer = Buffer.alloc(0);
}