[][src]Struct libsoxr::spec::QualitySpec

pub struct QualitySpec { /* fields omitted */ }

QualitySpec controls the quality of the resampling. Wrapper for soxr_quality_spec_t

Implementations

impl QualitySpec[src]

pub fn new(quality: &QualityRecipe, flags: QualityFlags) -> QualitySpec[src]

Create a new spec from supplied recipe and flags

 use libsoxr::{QualityFlags, QualityRecipe, QualitySpec, Soxr};

 let spec = QualitySpec::new(&QualityRecipe::High, QualityFlags::ROLLOFF_SMALL);
 let soxr = Soxr::create(96000.0, 44100.0, 2, None, Some(&spec), None);
 assert!(soxr.is_ok());

Trait Implementations

impl Debug for QualitySpec[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, 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.