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
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for AiffCompressionType
impl PartialEq for AiffCompressionType
impl Eq for AiffCompressionType
impl StructuralPartialEq for AiffCompressionType
Auto Trait Implementations§
impl Freeze for AiffCompressionType
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