Struct speexdsp_resampler::State
source · pub struct State {
pub(crate) st: SpeexResamplerState,
}
Fields§
§st: SpeexResamplerState
Implementations§
source§impl State
impl State
pub fn new( channels: usize, in_rate: usize, out_rate: usize, quality: usize, ) -> Result<Self, Error>
pub fn set_rate(&mut self, in_rate: usize, out_rate: usize) -> Result<(), Error>
pub fn get_rate(&self) -> (usize, usize)
pub fn get_ratio(&self) -> (usize, usize)
pub fn process_float( &mut self, index: usize, input: &[f32], output: &mut [f32], ) -> Result<(usize, usize), Error>
pub fn skip_zeros(&mut self)
pub fn reset(&mut self)
pub fn get_input_latency(&self) -> usize
pub fn get_output_latency(&self) -> usize
pub fn set_quality(&mut self, quality: usize) -> Result<(), Error>
pub fn get_quality(&self) -> usize
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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