Skip to content

Comments

Expose opus_decode's support for FEC and PLC through a new JS conceal method.#197

Open
JonathanLennox wants to merge 1 commit intodiscordjs:mainfrom
JonathanLennox:support-fec-and-plc-take-2
Open

Expose opus_decode's support for FEC and PLC through a new JS conceal method.#197
JonathanLennox wants to merge 1 commit intodiscordjs:mainfrom
JonathanLennox:support-fec-and-plc-take-2

Conversation

@JonathanLennox
Copy link

@JonathanLennox JonathanLennox commented Jan 15, 2026

Description

This code exposes Opus's FEC and PLC support in discord/opus.

If the Opus data being decoded passed over an unreliable channel (e.g. WebRTC) at some point, packets may be missing. FEC and PLC allow missing audio to be interpolated.

This code has been written to be backward-compatible, so existing usages won't need to change.

This is a different API approach than #195 to implement the feature request in #196. It separates the loss concealment functionality into a new API, which should be somewhat less confusing and harder to mis-use than the approach in #195.

  • Code changes have been tested, or there are no code changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant