pub struct PrepareConfig {
pub sample_rate_hz: u32,
pub max_block_frames: u32,
pub in_channels: u16,
pub out_channels: u16,
}Expand description
Configuration handed to each processor at prepare
time: the sample rate, maximum block size, and channel counts.
Fields§
§sample_rate_hz: u32Sample rate in hertz.
max_block_frames: u32Maximum number of frames in any single process block.
in_channels: u16Number of input channels.
out_channels: u16Number of output channels.
Implementations§
Trait Implementations§
Source§impl Clone for PrepareConfig
impl Clone for PrepareConfig
Source§fn clone(&self) -> PrepareConfig
fn clone(&self) -> PrepareConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrepareConfig
Source§impl Debug for PrepareConfig
impl Debug for PrepareConfig
impl Eq for PrepareConfig
Source§impl PartialEq for PrepareConfig
impl PartialEq for PrepareConfig
Source§fn eq(&self, other: &PrepareConfig) -> bool
fn eq(&self, other: &PrepareConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrepareConfig
Auto Trait Implementations§
impl Freeze for PrepareConfig
impl RefUnwindSafe for PrepareConfig
impl Send for PrepareConfig
impl Sync for PrepareConfig
impl Unpin for PrepareConfig
impl UnsafeUnpin for PrepareConfig
impl UnwindSafe for PrepareConfig
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