diff --git a/lib/voice/players/FFmpegEncoder.js b/lib/voice/players/FFmpegEncoder.js index 8dd949c..f406202 100644 --- a/lib/voice/players/FFmpegEncoder.js +++ b/lib/voice/players/FFmpegEncoder.js @@ -115,6 +115,7 @@ class FFmpegEncoder extends ExternalEncoderBase { this._format = options.format || "opus"; this._frameDuration = options.frameDuration || 60; this._debug = options.debug || false; + this._encoderEngine = options.encoderEngine; const args = this._getArgs(options); const handle = @@ -222,6 +223,7 @@ class FFmpegEncoder extends ExternalEncoderBase { channels: 2, frameDuration: this._frameDuration }; + if (this._encoderEngine) pcmOptions.engine = this._encoderEngine; const options = this._format === "pcm" ? pcmOptions : {proxy: true}; return super.play(options); }