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§
- Audio
Config - AudioIn
- Active audio input stream wrapper.
- Audio
Mixer - Simple audio mixer for combining multiple PCM streams.
- Audio
Out - Active audio output stream wrapper.
- Opus
Decoder - Thin wrapper around Opus decoder.
- Opus
Encoder - Thin wrapper around Opus encoder with Rift-friendly defaults.
- Voice
Frame
Functions§
- decode_
frame - Decode a single audio frame payload into PCM samples.
- encode_
frame - Encode a single audio frame into the requested codec.