pub enum AudioFormat {
WavPcm,
Flac,
Mp3,
Opus,
WebM,
Aac,
}Expand description
Audio container and codec format identifier.
Variants§
WavPcm
RIFF WAV container with PCM encoding.
Flac
Free Lossless Audio Codec.
Mp3
MPEG-1/2 Audio Layer 3.
Opus
Opus codec in Ogg container.
WebM
WebM container (Matroska subset) with audio track.
Aac
MPEG-4 container with AAC codec.
Implementations§
Source§impl AudioFormat
impl AudioFormat
Sourcepub const fn is_lossless(self) -> bool
pub const fn is_lossless(self) -> bool
Whether this format is lossless.
Sourcepub const fn is_container_format(self) -> bool
pub const fn is_container_format(self) -> bool
Whether this format requires container parsing (vs raw frames).
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
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 AudioFormat
impl Debug for AudioFormat
Source§impl Display for AudioFormat
impl Display for AudioFormat
Source§impl Hash for AudioFormat
impl Hash for AudioFormat
Source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnsafeUnpin for AudioFormat
impl UnwindSafe for AudioFormat
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