diff --git a/lib/voice/streams/FFmpegDuplex.js b/lib/voice/streams/FFmpegDuplex.js index c6aeaf0e5..9a64f5573 100644 --- a/lib/voice/streams/FFmpegDuplex.js +++ b/lib/voice/streams/FFmpegDuplex.js @@ -135,6 +135,10 @@ class FFmpegDuplex extends DuplexStream { end: false }); this.kill = this.destroy = kill; + + // In some rare and consistent cases, streams will cut out completely and they will stop. + // It is found that setting highWaterMark to an insanely high number will fix this. + this._stdout._readableState.highWaterMark = 2147483647 this._stderr.on("data", onStderrData);