[][src]Struct ac_ffmpeg::codec::audio::resampler::AudioResamplerBuilder

pub struct AudioResamplerBuilder { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.