#[repr(u16)]pub enum AdpcmSubFormat {
Ms = 2,
Ima = 17,
Yamaha = 32,
}
Expand description
- When to encode audio to ADPCM format, choose one of the subformats.
- The value of the subformat is the
format_tag
field of thefmt
chunk.
Variants§
Ms = 2
- This is for ADPCM-MS
Ima = 17
- This is for ADPCM-IMA
Yamaha = 32
- This is for ADPCM-YAMAHA. The Yamaha ADPCM algorithm is the easiest one to implement.
Trait Implementations§
Source§impl Clone for AdpcmSubFormat
impl Clone for AdpcmSubFormat
Source§fn clone(&self) -> AdpcmSubFormat
fn clone(&self) -> AdpcmSubFormat
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 AdpcmSubFormat
impl Debug for AdpcmSubFormat
Source§impl Display for AdpcmSubFormat
impl Display for AdpcmSubFormat
Source§impl From<AdpcmSubFormat> for u16
impl From<AdpcmSubFormat> for u16
Source§fn from(val: AdpcmSubFormat) -> Self
fn from(val: AdpcmSubFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdpcmSubFormat
impl PartialEq for AdpcmSubFormat
impl Copy for AdpcmSubFormat
impl StructuralPartialEq for AdpcmSubFormat
Auto Trait Implementations§
impl Freeze for AdpcmSubFormat
impl RefUnwindSafe for AdpcmSubFormat
impl Send for AdpcmSubFormat
impl Sync for AdpcmSubFormat
impl Unpin for AdpcmSubFormat
impl UnwindSafe for AdpcmSubFormat
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