pub struct ResamplerConfig(/* private fields */);Implementations§
Source§impl ResamplerConfig
impl ResamplerConfig
pub fn new( format: Format, channels: u32, sample_rate_in: u32, sample_rate_out: u32, algorithm: ResampleAlgorithmType, ) -> ResamplerConfig
pub fn format(&self) -> Format
pub fn channels(&self) -> u32
pub fn sample_rate_in(&self) -> u32
pub fn set_sample_rate_in(&mut self, sample_rate: u32)
pub fn sample_rate_out(&self) -> u32
pub fn set_sample_rate_out(&mut self, sample_rate: u32)
pub fn set_algorithm(&mut self, algo: ResampleAlgorithm)
pub fn algorithm(&self) -> ResampleAlgorithm
Trait Implementations§
Source§impl Clone for ResamplerConfig
impl Clone for ResamplerConfig
Source§fn clone(&self) -> ResamplerConfig
fn clone(&self) -> ResamplerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResamplerConfig
impl RefUnwindSafe for ResamplerConfig
impl Send for ResamplerConfig
impl Sync for ResamplerConfig
impl Unpin for ResamplerConfig
impl UnwindSafe for ResamplerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more