Skip to content

Commit

Permalink
Fix setPLP in Opus.js (amishshah#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
elBenko authored Feb 13, 2020
1 parent cb94179 commit 8d2c9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opus/Opus.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class OpusStream extends Transform {
*/
setPLP(percentage) {
(this.encoder.applyEncoderCTL || this.encoder.encoderCTL)
.apply(this.encoder, [CTL.FEC, Math.min(100, Math.max(0, percentage * 100))]);
.apply(this.encoder, [CTL.PLP, Math.min(100, Math.max(0, percentage * 100))]);
}

_final(cb) {
Expand Down

0 comments on commit 8d2c9b7

Please sign in to comment.