#[repr(C)]pub struct PcmFormat {
pub sample_rate: u32,
pub channels: u8,
}Expand description
PCM the host encodes to Opus.
Fields§
§sample_rate: u328000, 12000, 16000, 24000 or 48000 Hz (Opus’s own rates; nothing is resampled).
channels: u81 (mono) or 2 (stereo, interleaved left-right).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PcmFormat
impl RefUnwindSafe for PcmFormat
impl Send for PcmFormat
impl Sync for PcmFormat
impl Unpin for PcmFormat
impl UnsafeUnpin for PcmFormat
impl UnwindSafe for PcmFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more