pub struct AudioCodecParameters { /* private fields */ }
Expand description
Audio codec parameters.
Implementations§
Source§impl AudioCodecParameters
impl AudioCodecParameters
Sourcepub fn builder(codec: &str) -> Result<AudioCodecParametersBuilder, Error>
pub fn builder(codec: &str) -> Result<AudioCodecParametersBuilder, Error>
Get builder for audio codec parameters.
Sourcepub fn decoder_name(&self) -> Option<&'static str>
pub fn decoder_name(&self) -> Option<&'static str>
Get name of the decoder that is able to decode this codec or None if the decoder is not available.
Sourcepub fn encoder_name(&self) -> Option<&'static str>
pub fn encoder_name(&self) -> Option<&'static str>
Get name of the encoder that is able to produce encoding of this codec or None if the encoder is not available.
Sourcepub fn sample_format(&self) -> SampleFormat
pub fn sample_format(&self) -> SampleFormat
Get frame sample format.
Sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
Get sampling rate.
Sourcepub fn channel_layout(&self) -> &ChannelLayoutRef
pub fn channel_layout(&self) -> &ChannelLayoutRef
Get channel layout.
Trait Implementations§
Source§impl Clone for AudioCodecParameters
impl Clone for AudioCodecParameters
Source§fn clone(&self) -> AudioCodecParameters
fn clone(&self) -> AudioCodecParameters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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.
Source§impl From<AudioCodecParameters> for CodecParameters
impl From<AudioCodecParameters> for CodecParameters
Source§fn from(params: AudioCodecParameters) -> Self
fn from(params: AudioCodecParameters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AudioCodecParameters
impl RefUnwindSafe for AudioCodecParameters
impl Send for AudioCodecParameters
impl Sync for AudioCodecParameters
impl Unpin for AudioCodecParameters
impl UnwindSafe for AudioCodecParameters
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