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.
Trait Implementations§
Source§impl Drop for AudioDecoderBuilder
impl Drop for AudioDecoderBuilder
impl Send for AudioDecoderBuilder
impl Sync for AudioDecoderBuilder
Auto Trait Implementations§
impl Freeze for AudioDecoderBuilder
impl RefUnwindSafe for AudioDecoderBuilder
impl Unpin for AudioDecoderBuilder
impl UnwindSafe for AudioDecoderBuilder
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