Skip to main content

Crate rift_media

Crate rift_media 

Source
Expand description

Audio capture, playback, and codec helpers.

This module wraps CPAL for audio I/O and Opus for encoding/decoding. It also provides a simple mixer for combining multiple streams.

Structs§

AudioConfig
AudioIn
Active audio input stream wrapper.
AudioMixer
Simple audio mixer for combining multiple PCM streams.
AudioOut
Active audio output stream wrapper.
OpusDecoder
Thin wrapper around Opus decoder.
OpusEncoder
Thin wrapper around Opus encoder with Rift-friendly defaults.
VoiceFrame

Functions§

decode_frame
Decode a single audio frame payload into PCM samples.
encode_frame
Encode a single audio frame into the requested codec.