#[repr(C)]pub struct switch_audio_resampler_t {
pub resampler: *mut c_void,
pub from_rate: c_int,
pub to_rate: c_int,
pub factor: f64,
pub rfactor: f64,
pub to: *mut i16,
pub to_len: u32,
pub to_size: u32,
pub channels: c_int,
}Expand description
\defgroup resamp Audio Resample Functions \ingroup core1 { / /*! \brief An audio resampling handle
Fields§
§resampler: *mut c_voida pointer to store the resampler object
from_rate: c_intthe rate to resample from in hz
to_rate: c_intthe rate to resample to in hz
factor: f64the factor to resample by (from / to)
rfactor: f64§to: *mut i16§to_len: u32the size of the to buffer used
to_size: u32the total size of the to buffer
channels: c_intthe number of channels
Trait Implementations§
Source§impl Clone for switch_audio_resampler_t
impl Clone for switch_audio_resampler_t
Source§fn clone(&self) -> switch_audio_resampler_t
fn clone(&self) -> switch_audio_resampler_t
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 moreSource§impl Debug for switch_audio_resampler_t
impl Debug for switch_audio_resampler_t
impl Copy for switch_audio_resampler_t
Auto Trait Implementations§
impl Freeze for switch_audio_resampler_t
impl RefUnwindSafe for switch_audio_resampler_t
impl !Send for switch_audio_resampler_t
impl !Sync for switch_audio_resampler_t
impl Unpin for switch_audio_resampler_t
impl UnwindSafe for switch_audio_resampler_t
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