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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for ResampleAlgorithm
impl PartialEq for ResampleAlgorithm
impl Copy for ResampleAlgorithm
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 UnwindSafe for ResampleAlgorithm
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)