Skip to content

Add float32 Opus encoding - #10

Merged
biw merged 1 commit into
mainfrom
biw/add-float32-encoding
Aug 10, 2026
Merged

biw merged 1 commit into
mainfrom
biw/add-float32-encoding

Conversation

@biw

@biw biw commented Aug 10, 2026

Copy link
Copy Markdown
Owner

fixes: discordjs/opus#171

Summary

  • Add a safe encodeFloat(Buffer) API backed by opus_encode_float.
  • Validate float PCM type, alignment-independent byte layout, finite samples, and supported Opus frame durations.
  • Document the public API and add float plus legacy int16 codec regression coverage.

Validation

  • pnpm exec vp check --fix
  • pnpm exec node-gyp rebuild
  • LIBOPUS_TEST_NATIVE=1 node src/tests/test.js
  • pnpm build-package && pnpm test && pnpm check
  • git diff --check

@biw
biw merged commit 4e4b0a0 into main Aug 10, 2026
27 checks passed
@biw
biw deleted the biw/add-float32-encoding branch August 10, 2026 18:50
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 decoding as float32

1 participant