Enum Response Delay
pub enum ResponseDelay {
Retain,
RemoveWholeTargetFrames,
}Expand description
Treatment of the sinc converter’s (taps - 1) / 2 source-sample delay.
Variants§
Retain
Keep the complete causal delay and tail; the response onset is delayed by
(taps - 1) * target_rate / (2 * source_rate) target frames.
RemoveWholeTargetFrames
Discard floor((taps - 1) * target_rate / (2 * source_rate)) leading
converted frames. The fractional remainder (in [0, 1) target frames) stays
in the response and is reported, never interpolated away.
Trait Implementations§
§impl Clone for ResponseDelay
impl Clone for ResponseDelay
§fn clone(&self) -> ResponseDelay
fn clone(&self) -> ResponseDelay
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 ResponseDelay
§impl Debug for ResponseDelay
impl Debug for ResponseDelay
impl Eq for ResponseDelay
§impl PartialEq for ResponseDelay
impl PartialEq for ResponseDelay
impl StructuralPartialEq for ResponseDelay
Auto Trait Implementations§
impl Freeze for ResponseDelay
impl RefUnwindSafe for ResponseDelay
impl Send for ResponseDelay
impl Sync for ResponseDelay
impl Unpin for ResponseDelay
impl UnsafeUnpin for ResponseDelay
impl UnwindSafe for ResponseDelay
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