pub(crate) struct InputPlan {
pub(crate) config: StreamConfig,
pub(crate) sample_format: InputFormat,
pub(crate) resample_from: Option<u32>,
}Expand description
How a capture opens: the stream config the device will run at, the format
its stream delivers, and the rate its samples arrive at when that is not
already SAMPLE_RATE.
Fields§
§config: StreamConfig§sample_format: InputFormatThe format the stream is built for; the planner never yields one the capture cannot open.
resample_from: Option<u32>Some when the device cannot offer SAMPLE_RATE itself and
its audio needs converting; None when the samples flow
through untouched.
Trait Implementations§
impl StructuralPartialEq for InputPlan
Auto Trait Implementations§
impl Freeze for InputPlan
impl RefUnwindSafe for InputPlan
impl Send for InputPlan
impl Sync for InputPlan
impl Unpin for InputPlan
impl UnsafeUnpin for InputPlan
impl UnwindSafe for InputPlan
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