Struct Impulse Response Request
pub struct ImpulseResponseRequest<'a> {
pub target_rate: u32,
pub conversion: ResponseRateConversion,
pub channels: ResponseChannelMap<'a>,
pub trim: ResponseTrim,
pub normalization: ResponseNormalization,
pub maximum_taps: usize,
pub maximum_working_bytes: usize,
}Expand description
Complete explicit preparation request. There are no defaults.
Fields§
§target_rate: u32Engine sample rate in Hz, 1..=768,000.
conversion: ResponseRateConversionRate conversion policy.
channels: ResponseChannelMap<'a>Channel mapping.
trim: ResponseTrimTrim policy.
normalization: ResponseNormalizationNormalization policy.
maximum_taps: usizeLargest accepted prepared length per channel, 1..=262,144.
maximum_working_bytes: usizeBudget for result, staging and sinc table bytes, 1..=256 MiB. Caller-owned source data and allocator overhead are excluded.
Implementations§
§impl ImpulseResponseRequest<'_>
impl ImpulseResponseRequest<'_>
pub fn plan(
&self,
source_rate: u32,
source_channels: usize,
source_frames: usize,
) -> Result<ImpulseResponsePlan, ImpulseResponseError>
pub fn plan( &self, source_rate: u32, source_channels: usize, source_frames: usize, ) -> Result<ImpulseResponsePlan, ImpulseResponseError>
Validate every policy and bound for a source shape and compute exact frame
counts and declared bytes, without allocating or reading samples. Data-
dependent refusals (nonfinite input, threshold, length after trim, silence)
are decided by prepare_impulse_response.
Trait Implementations§
§impl<'a> Clone for ImpulseResponseRequest<'a>
impl<'a> Clone for ImpulseResponseRequest<'a>
§fn clone(&self) -> ImpulseResponseRequest<'a>
fn clone(&self) -> ImpulseResponseRequest<'a>
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<'a> Copy for ImpulseResponseRequest<'a>
§impl<'a> Debug for ImpulseResponseRequest<'a>
impl<'a> Debug for ImpulseResponseRequest<'a>
§impl<'a> PartialEq for ImpulseResponseRequest<'a>
impl<'a> PartialEq for ImpulseResponseRequest<'a>
impl<'a> StructuralPartialEq for ImpulseResponseRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImpulseResponseRequest<'a>
impl<'a> RefUnwindSafe for ImpulseResponseRequest<'a>
impl<'a> Send for ImpulseResponseRequest<'a>
impl<'a> Sync for ImpulseResponseRequest<'a>
impl<'a> Unpin for ImpulseResponseRequest<'a>
impl<'a> UnsafeUnpin for ImpulseResponseRequest<'a>
impl<'a> UnwindSafe for ImpulseResponseRequest<'a>
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