[][src]Enum miniaudio::ResampleAlgorithm

pub enum ResampleAlgorithm {
    Linear {
        lpf_order: u32,
        lpf_nyquist_factor: f64,
    },
    Speex {
        quality: u32,
    },
}

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

Linear

Fields of Linear

lpf_order: u32lpf_nyquist_factor: f64
Speex

Fields of Speex

quality: u32

Methods

impl ResampleAlgorithm[src]

Trait Implementations

impl Clone for ResampleAlgorithm[src]

impl Copy for ResampleAlgorithm[src]

impl PartialEq<ResampleAlgorithm> for ResampleAlgorithm[src]

impl StructuralPartialEq for ResampleAlgorithm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.