[][src]Struct libsoxr::spec::RuntimeSpec

pub struct RuntimeSpec { /* fields omitted */ }

Runtime parameters for resampler. Can be used to control number of threads the resampler uses. Wrapper for soxr_runtime_spec_t

Implementations

impl RuntimeSpec[src]

pub fn new(num_threads: u32) -> RuntimeSpec[src]

creates a new RuntimeSpec for num_threads threads

use libsoxr::{Soxr, RuntimeSpec};

let spec = RuntimeSpec::new(4);
let soxr = Soxr::create(96000.0, 44100.0, 2, None, None, Some(&spec));
assert!(soxr.is_ok());    

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.