[−][src]Struct ac_ffmpeg::codec::audio::resampler::AudioResamplerBuilder
Builder for the audio resampler.
Implementations
impl AudioResamplerBuilder[src]
pub fn source_channel_layout(self, channel_layout: ChannelLayout) -> Self[src]
Set source channel layout.
pub fn source_sample_format(self, sample_format: SampleFormat) -> Self[src]
Set source sample format.
pub fn source_sample_rate(self, sample_rate: u32) -> Self[src]
Set source sample rate.
pub fn target_channel_layout(self, channel_layout: ChannelLayout) -> Self[src]
Set target channel layout.
pub fn target_sample_format(self, sample_format: SampleFormat) -> Self[src]
Set target sample format.
pub fn target_sample_rate(self, sample_rate: u32) -> Self[src]
Set target sample rate.
pub fn target_frame_samples(self, samples: Option<usize>) -> Self[src]
Set the expected number of samples in target frames (for fixed frame size codecs).
pub fn build(self) -> Result<AudioResampler, Error>[src]
Build the resampler.
Auto Trait Implementations
impl RefUnwindSafe for AudioResamplerBuilder
impl Send for AudioResamplerBuilder
impl Sync for AudioResamplerBuilder
impl Unpin for AudioResamplerBuilder
impl UnwindSafe for AudioResamplerBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,