pub struct Context { /* private fields */ }
Implementations
sourceimpl Context
impl Context
sourcepub fn get(
src_format: Sample,
src_channel_layout: ChannelLayout,
src_rate: u32,
dst_format: Sample,
dst_channel_layout: ChannelLayout,
dst_rate: u32
) -> Result<Self, Error>
pub fn get(
src_format: Sample,
src_channel_layout: ChannelLayout,
src_rate: u32,
dst_format: Sample,
dst_channel_layout: ChannelLayout,
dst_rate: u32
) -> Result<Self, Error>
Create a resampler with the given definitions.
sourcepub fn get_with(
src_format: Sample,
src_channel_layout: ChannelLayout,
src_rate: u32,
dst_format: Sample,
dst_channel_layout: ChannelLayout,
dst_rate: u32,
options: Dictionary<'_>
) -> Result<Self, Error>
pub fn get_with(
src_format: Sample,
src_channel_layout: ChannelLayout,
src_rate: u32,
dst_format: Sample,
dst_channel_layout: ChannelLayout,
dst_rate: u32,
options: Dictionary<'_>
) -> Result<Self, Error>
Create a resampler with the given definitions and custom options dictionary.
sourcepub fn input(&self) -> &Definition
pub fn input(&self) -> &Definition
Get the input definition.
sourcepub fn output(&self) -> &Definition
pub fn output(&self) -> &Definition
Get the output definition.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more