Skip to content

Commit

Permalink
Add engine option passthrough in FFmpegEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
qeled committed Apr 26, 2017
1 parent 45e0419 commit db65aab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/voice/players/FFmpegEncoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit db65aab

Please sign in to comment.