Struct ac_ffmpeg::codec::audio::AudioDecoderBuilder
source · pub struct AudioDecoderBuilder { /* private fields */ }
Expand description
Builder for the audio decoder.
Implementations§
source§impl AudioDecoderBuilder
impl AudioDecoderBuilder
sourcepub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
pub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
Set a decoder option.
sourcepub fn time_base(self, time_base: TimeBase) -> Self
pub fn time_base(self, time_base: TimeBase) -> Self
Set decoder time base (all input packets will be rescaled into this time base). The default time base is in microseconds.
sourcepub fn build(self) -> Result<AudioDecoder, Error>
pub fn build(self) -> Result<AudioDecoder, Error>
Build the decoder.