Struct ac_ffmpeg::codec::AudioCodecParametersBuilder
source · pub struct AudioCodecParametersBuilder { /* private fields */ }
Expand description
Builder for audio codec parameters.
Implementations§
source§impl AudioCodecParametersBuilder
impl AudioCodecParametersBuilder
sourcepub fn sample_format(self, format: SampleFormat) -> Self
pub fn sample_format(self, format: SampleFormat) -> Self
Set frame sample format.
sourcepub fn sample_rate(self, rate: u32) -> Self
pub fn sample_rate(self, rate: u32) -> Self
Set sampling rate.
sourcepub fn channel_layout(self, layout: &ChannelLayoutRef) -> Self
pub fn channel_layout(self, layout: &ChannelLayoutRef) -> Self
Set channel layout.
sourcepub fn build(self) -> AudioCodecParameters
pub fn build(self) -> AudioCodecParameters
Build the codec parameters.
Trait Implementations§
source§impl From<AudioCodecParameters> for AudioCodecParametersBuilder
impl From<AudioCodecParameters> for AudioCodecParametersBuilder
source§fn from(params: AudioCodecParameters) -> Self
fn from(params: AudioCodecParameters) -> Self
Converts to this type from the input type.