[−][src]Struct libsoxr::spec::RuntimeSpec
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
impl RefUnwindSafe for RuntimeSpec
[src]
impl !Send for RuntimeSpec
[src]
impl !Sync for RuntimeSpec
[src]
impl Unpin for RuntimeSpec
[src]
impl UnwindSafe for RuntimeSpec
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,