Struct Process Config
pub struct ProcessConfig { /* private fields */ }Expand description
Validated capacities; preparation may allocate up to these limits.
Implementations§
§impl ProcessConfig
impl ProcessConfig
pub fn new( sample_rate: f64, maximum_frames: usize, maximum_events: usize, layout: AudioLayout, ) -> Result<Self, PrepareError>
pub fn sample_rate(self) -> f64
pub fn maximum_frames(self) -> usize
pub fn maximum_events(self) -> usize
pub fn layout(self) -> AudioLayout
pub fn with_auxiliary_buses(
self,
buses: &[AudioLayout],
) -> Result<Self, PrepareError>
pub fn with_auxiliary_buses( self, buses: &[AudioLayout], ) -> Result<Self, PrepareError>
Configure ordered auxiliary buses during preparation, without allocation. Each block must supply matching buses in this order. Processor implementations explicitly accept or reject these layouts; this does not enable host ports.
pub fn auxiliary_buses(&self) -> &[AudioLayout]
pub fn with_output_events(self, capacity: usize) -> Self
pub fn with_output_events(self, capacity: usize) -> Self
Bound emitted events independently of input capacity. The caller supplies exactly this much storage before processing; a full writer rejects additional events.
pub fn maximum_output_events(self) -> usize
pub fn validate_block<S: Sample>(
&self,
block: &ProcessBlock<'_, '_, '_, S>,
) -> Result<(), ProcessError>
pub fn validate_block<S: Sample>( &self, block: &ProcessBlock<'_, '_, '_, S>, ) -> Result<(), ProcessError>
Validate the entire block before applying events or changing samples. Event capacity is checked before traversing the event slice.
Trait Implementations§
§impl Clone for ProcessConfig
impl Clone for ProcessConfig
§fn clone(&self) -> ProcessConfig
fn clone(&self) -> ProcessConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProcessConfig
§impl Debug for ProcessConfig
impl Debug for ProcessConfig
§impl PartialEq for ProcessConfig
impl PartialEq for ProcessConfig
impl StructuralPartialEq for ProcessConfig
Auto Trait Implementations§
impl Freeze for ProcessConfig
impl RefUnwindSafe for ProcessConfig
impl Send for ProcessConfig
impl Sync for ProcessConfig
impl Unpin for ProcessConfig
impl UnsafeUnpin for ProcessConfig
impl UnwindSafe for ProcessConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more