pub enum Latency {
Sample8,
Sample16,
Sample32,
Sample64,
}Expand description
Latency configuration for the FIR resampler.
Determines the number of filter taps, which affects both rolloff and algorithmic delay. Higher tap counts provide shaper rolloff but increased latency.
The enum variants are named by their algorithmic delay in samples (taps / 2):
Sample8: 8 samples delay (16 taps)Sample16: 16 samples delay (32 taps)Sample32: 32 samples delay (64 taps)Sample64: 64 samples delay (128 taps)
Defaults to 64 samples delay (128 taps).
Variants§
Sample8
8 samples algorithmic delay (16 taps).
Sample16
16 samples algorithmic delay (32 taps).
Sample32
32 samples algorithmic delay (64 taps).
Sample64
64 samples algorithmic delay (128 taps).
Implementations§
Trait Implementations§
impl Copy for Latency
impl Eq for Latency
impl StructuralPartialEq for Latency
Auto Trait Implementations§
impl Freeze for Latency
impl RefUnwindSafe for Latency
impl Send for Latency
impl Sync for Latency
impl Unpin for Latency
impl UnwindSafe for Latency
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