pub struct AudioResamplerBuilder { /* private fields */ }
Expand description
Builder for the audio resampler.
Implementations§
Source§impl AudioResamplerBuilder
impl AudioResamplerBuilder
Sourcepub fn source_channel_layout(self, channel_layout: ChannelLayout) -> Self
pub fn source_channel_layout(self, channel_layout: ChannelLayout) -> Self
Set source channel layout.
Sourcepub fn source_sample_format(self, sample_format: SampleFormat) -> Self
pub fn source_sample_format(self, sample_format: SampleFormat) -> Self
Set source sample format.
Sourcepub fn source_sample_rate(self, sample_rate: u32) -> Self
pub fn source_sample_rate(self, sample_rate: u32) -> Self
Set source sample rate.
Sourcepub fn target_channel_layout(self, channel_layout: ChannelLayout) -> Self
pub fn target_channel_layout(self, channel_layout: ChannelLayout) -> Self
Set target channel layout.
Sourcepub fn target_sample_format(self, sample_format: SampleFormat) -> Self
pub fn target_sample_format(self, sample_format: SampleFormat) -> Self
Set target sample format.
Sourcepub fn target_sample_rate(self, sample_rate: u32) -> Self
pub fn target_sample_rate(self, sample_rate: u32) -> Self
Set target sample rate.
Sourcepub fn target_frame_samples(self, samples: Option<usize>) -> Self
pub fn target_frame_samples(self, samples: Option<usize>) -> Self
Set the expected number of samples in target frames (for fixed frame size codecs).
Sourcepub fn build(self) -> Result<AudioResampler, Error>
pub fn build(self) -> Result<AudioResampler, Error>
Build the resampler.
Auto Trait Implementations§
impl Freeze for AudioResamplerBuilder
impl RefUnwindSafe for AudioResamplerBuilder
impl Send for AudioResamplerBuilder
impl Sync for AudioResamplerBuilder
impl Unpin for AudioResamplerBuilder
impl UnwindSafe for AudioResamplerBuilder
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