Struct audio::PcmFormat
zaun_bot::audio::PcmFormat · Struct
pub struct PcmFormat { … }PCM the host encodes to Opus.
Fields
Section titled “Fields”sample_rate: u32
Section titled “sample_rate: u32”8000, 12000, 16000, 24000 or 48000 Hz (Opus’s own rates; nothing is resampled).
channels: u8
Section titled “channels: u8”1 (mono) or 2 (stereo, interleaved left-right).
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug