pub enum AudioCodecId {
Opus,
Flac,
Vorbis,
Mp3,
Aac,
Pcm,
}Expand description
Identifies a specific audio codec.
Variants§
Opus
Opus – modern, low-latency, patent-free.
Flac
FLAC – Free Lossless Audio Codec.
Vorbis
Vorbis – open source lossy codec.
Mp3
MP3 – MPEG Layer III (patents expired 2017).
Aac
AAC – Advanced Audio Coding.
Pcm
PCM – uncompressed linear PCM.
Implementations§
Source§impl AudioCodecId
impl AudioCodecId
Sourcepub fn is_lossless(self) -> bool
pub fn is_lossless(self) -> bool
Returns true if this codec is lossless.
Sourcepub fn default_bitrate(self) -> u32
pub fn default_bitrate(self) -> u32
Returns the typical default bitrate (bits per second) for the codec at stereo 48 kHz.
Trait Implementations§
Source§impl Clone for AudioCodecId
impl Clone for AudioCodecId
Source§fn clone(&self) -> AudioCodecId
fn clone(&self) -> AudioCodecId
Returns a duplicate 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 Debug for AudioCodecId
impl Debug for AudioCodecId
Source§impl PartialEq for AudioCodecId
impl PartialEq for AudioCodecId
impl Copy for AudioCodecId
impl Eq for AudioCodecId
impl StructuralPartialEq for AudioCodecId
Auto Trait Implementations§
impl Freeze for AudioCodecId
impl RefUnwindSafe for AudioCodecId
impl Send for AudioCodecId
impl Sync for AudioCodecId
impl Unpin for AudioCodecId
impl UnsafeUnpin for AudioCodecId
impl UnwindSafe for AudioCodecId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more