pub struct IOSpec { /* private fields */ }
Expand description

IOSpec can be used to set the datatype of the input buffer and output buffer. Wrapper for soxr_io_spec_t

Implementations

creates a new IOSpec using soxr_io_spec

use libsoxr::{Soxr, Datatype, IOSpec};

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.