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: u8
Implementations§
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
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