Expand description
WebAssembly bindings for the Rift protocol.
This module exposes a minimal API for:
- invite creation/inspection
- session bootstrap
- encrypted text encode/decode using protocol framing
- voice frame encode/decode for browser audio integration
- audio utilities (level metering, VAD)
Structs§
- Audio
Config - Audio configuration for browser integration.
- Invite
Info - Wasm
Client
Functions§
- apply_
gain - Apply a simple gain to PCM16 samples.
- audio_
level - Calculate the RMS audio level from PCM16 samples.
- audio_
level_ bytes - Calculate the RMS audio level from a Uint8Array of PCM16 bytes.
- create_
invite - float32_
to_ pcm16 - Convert Float32Array audio samples to PCM16 bytes.
- inspect_
invite - is_
voice_ active - Check if an audio frame is “active” (contains speech).
- is_
voice_ active_ bytes - Check if an audio frame is “active” from PCM16 bytes.
- join_
invite - level_
to_ db - Compute audio level in decibels (dB) from RMS level.
- mix_
frames - Mix two audio frames together.
- pcm16_
to_ float32 - Convert PCM16 bytes to Float32 samples.