pub enum ResampleAlgorithm {
Linear {
lpf_order: u32,
lpf_nyquist_factor: f64,
},
Speex {
quality: u32,
},
}Expand description
The choice of resampling algorithm depends on your situation and requirements. The linear resampler is the most efficient and has the least amount of latency, but at the expense of poorer quality. The Speex resampler is higher quality, but slower with more latency. It also performs several heap allocations internally for memory management.
Variants§
Implementations§
Source§impl ResampleAlgorithm
impl ResampleAlgorithm
pub fn algorithm_type(&self) -> ResampleAlgorithmType
Trait Implementations§
Source§impl Clone for ResampleAlgorithm
impl Clone for ResampleAlgorithm
Source§fn clone(&self) -> ResampleAlgorithm
fn clone(&self) -> ResampleAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResampleAlgorithm
Source§impl PartialEq for ResampleAlgorithm
impl PartialEq for ResampleAlgorithm
Source§fn eq(&self, other: &ResampleAlgorithm) -> bool
fn eq(&self, other: &ResampleAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResampleAlgorithm
Auto Trait Implementations§
impl Freeze for ResampleAlgorithm
impl RefUnwindSafe for ResampleAlgorithm
impl Send for ResampleAlgorithm
impl Sync for ResampleAlgorithm
impl Unpin for ResampleAlgorithm
impl UnsafeUnpin for ResampleAlgorithm
impl UnwindSafe for ResampleAlgorithm
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