Struct Configured Oversampler
pub struct ConfiguredOversampler { /* private fields */ }Expand description
Configured 1/2/4/8 cascades; fixed 3 stages/stack 8 samples, exact closure call count/time order. CONTROL construction; heap/lock/I/O-free sample/block/reset. Caller closure obligations remain separate. FactorOne exact pass-through; no dry-phase alignment, integer host latency or modulation/crossfade implied.
Implementations§
§impl ConfiguredOversampler
impl ConfiguredOversampler
pub fn new( factor: OversamplingFactor, up: HalfBandIirDesign, down: HalfBandIirDesign, ) -> Self
pub fn from_stages( factor: OversamplingFactor, profiles: [(HalfBandIirDesign, HalfBandIirDesign); 3], ) -> Self
pub fn factor(&self) -> OversamplingFactor
pub fn reset(&mut self)
pub fn process_sample( &mut self, input: f64, process: impl FnMut(f64) -> f64, ) -> f64
pub fn process_in_place( &mut self, samples: &mut [f64], process: impl FnMut(f64) -> f64, )
pub fn process_block(
&mut self,
input: &[f64],
output: &mut [f64],
process: impl FnMut(f64) -> f64,
) -> Result<(), FilterError>
pub fn process_block( &mut self, input: &[f64], output: &mut [f64], process: impl FnMut(f64) -> f64, ) -> Result<(), FilterError>
Mismatched lengths preserve output/history and never call child DSP.
Trait Implementations§
§impl Clone for ConfiguredOversampler
impl Clone for ConfiguredOversampler
§fn clone(&self) -> ConfiguredOversampler
fn clone(&self) -> ConfiguredOversampler
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 moreAuto Trait Implementations§
impl Freeze for ConfiguredOversampler
impl RefUnwindSafe for ConfiguredOversampler
impl Send for ConfiguredOversampler
impl Sync for ConfiguredOversampler
impl Unpin for ConfiguredOversampler
impl UnsafeUnpin for ConfiguredOversampler
impl UnwindSafe for ConfiguredOversampler
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