Struct audio_codec_algorithms::AdpcmImaState
source · pub struct AdpcmImaState {
pub predictor: i16,
pub step_index: u8,
}Expand description
State values for the IMA ADPCM encoder and decoder.
The values should be initialized to zeros or to values from the audio stream.
Fields§
§predictor: i16§step_index: u8Implementations§
source§impl AdpcmImaState
impl AdpcmImaState
sourcepub fn new() -> AdpcmImaState
pub fn new() -> AdpcmImaState
Creates a new AdpcmState with zero values.
Trait Implementations§
source§impl Clone for AdpcmImaState
impl Clone for AdpcmImaState
source§fn clone(&self) -> AdpcmImaState
fn clone(&self) -> AdpcmImaState
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 AdpcmImaState
impl Debug for AdpcmImaState
source§impl Default for AdpcmImaState
impl Default for AdpcmImaState
source§impl PartialEq for AdpcmImaState
impl PartialEq for AdpcmImaState
source§fn eq(&self, other: &AdpcmImaState) -> bool
fn eq(&self, other: &AdpcmImaState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AdpcmImaState
Auto Trait Implementations§
impl Freeze for AdpcmImaState
impl RefUnwindSafe for AdpcmImaState
impl Send for AdpcmImaState
impl Sync for AdpcmImaState
impl Unpin for AdpcmImaState
impl UnwindSafe for AdpcmImaState
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)