Enum lofty::iff::aiff::AiffCompressionType
source · pub enum AiffCompressionType {
}Expand description
The AIFC compression type
This contains a non-exhaustive list of compression types
Variants§
None
PCM
ACE2
2-to-1 IIGS ACE (Audio Compression / Expansion)
ACE8
8-to-3 IIGS ACE (Audio Compression / Expansion)
MAC3
3-to-1 Macintosh Audio Compression / Expansion
MAC6
6-to-1 Macintosh Audio Compression / Expansion
sowt
PCM (byte swapped)
fl32
IEEE 32-bit float
fl64
IEEE 64-bit float
alaw
8-bit ITU-T G.711 A-law
ulaw
8-bit ITU-T G.711 µ-law
ULAW
8-bit ITU-T G.711 µ-law (64 kb/s)
ALAW
8-bit ITU-T G.711 A-law (64 kb/s)
FL32
IEEE 32-bit float (From SoundHack & Csound)
Other
Fields
Catch-all for unknown compression algorithms
Implementations§
source§impl AiffCompressionType
impl AiffCompressionType
sourcepub fn compression_name(&self) -> Cow<'_, str>
pub fn compression_name(&self) -> Cow<'_, str>
Get the compression name for a compression type
For variants other than AiffCompressionType::Other, this will use statically known names.
Examples
use lofty::iff::aiff::AiffCompressionType;
let compression_type = AiffCompressionType::alaw;
assert_eq!(compression_type.compression_name(), "ALaw 2:1");Trait Implementations§
source§impl Clone for AiffCompressionType
impl Clone for AiffCompressionType
source§fn clone(&self) -> AiffCompressionType
fn clone(&self) -> AiffCompressionType
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 Debug for AiffCompressionType
impl Debug for AiffCompressionType
source§impl Default for AiffCompressionType
impl Default for AiffCompressionType
source§fn default() -> AiffCompressionType
fn default() -> AiffCompressionType
Returns the “default value” for a type. Read more
source§impl PartialEq<AiffCompressionType> for AiffCompressionType
impl PartialEq<AiffCompressionType> for AiffCompressionType
source§fn eq(&self, other: &AiffCompressionType) -> bool
fn eq(&self, other: &AiffCompressionType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AiffCompressionType
impl StructuralEq for AiffCompressionType
impl StructuralPartialEq for AiffCompressionType
Auto Trait Implementations§
impl RefUnwindSafe for AiffCompressionType
impl Send for AiffCompressionType
impl Sync for AiffCompressionType
impl Unpin for AiffCompressionType
impl UnwindSafe for AiffCompressionType
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