pub struct Input {
pub format: Format,
pub sample_rate: u32,
pub channels: u32,
}Expand description
The PCM layout of the buffers handed to Encoder::encode /
Producer::write.
The encoder’s counterpart to a video encoder’s width / height: it describes
the input, not the output. publish_capture fills it in from the capture
source, so only a bring-your-own-PCM caller builds one.
Fields§
§format: FormatHow samples are packed in each buffer.
sample_rate: u32Samples per second per channel. Resampled to the codec rate if they differ.
channels: u32Channels per frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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