Skip to content

Add FEC and packet-loss concealment decoding - #9

Merged
biw merged 8 commits into
mainfrom
biw/add-fec-plc
Aug 10, 2026
Merged

Add FEC and packet-loss concealment decoding#9
biw merged 8 commits into
mainfrom
biw/add-fec-plc

Conversation

@biw

@biw biw commented Aug 10, 2026

Copy link
Copy Markdown
Owner

fixes: discordjs/opus#196

Summary

  • accept null packets for packet-loss concealment (PLC)
  • add a typed decode(packet, { fec: true, frameSize }) FEC path
  • validate recovery frame sizes against the codec rate, 120 ms limit, and 2.5 ms granularity
  • document the recovery sequence and add native regression coverage

Validation

  • LIBOPUS_TEST_NATIVE=1 node src/tests/test.js
  • pnpm typecheck
  • pnpm lint
  • pnpm format:check
  • pnpm build-package && pnpm test

@biw
biw changed the base branch from main to biw/add-float32-decoding August 10, 2026 07:23
Base automatically changed from biw/add-float32-decoding to main August 10, 2026 08:34
@biw
biw merged commit 2eabee5 into main Aug 10, 2026
27 checks passed
@biw
biw deleted the biw/add-fec-plc branch August 10, 2026 08:54
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.

Support Opus FEC and PLC

1 participant