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());