You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 06:23:53 +01:00
hotfix for audio buffer length
This commit is contained in:
@@ -103,7 +103,7 @@ class StreamServer {
|
|||||||
|
|
||||||
OnStdInData(buffer) {
|
OnStdInData(buffer) {
|
||||||
this.Buffer = Buffer.concat([this.Buffer, 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.SendAudioData(this.Buffer);
|
||||||
this.Buffer = Buffer.alloc(0);
|
this.Buffer = Buffer.alloc(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user