pub struct AdpcmChannelState {
pub pred_value: i32,
pub step_size_index: i32,
}Expand description
Holds the persistent state for an audio channel during ADPCM encoding/decoding.
Fields§
§pred_value: i32The predicted 16-bit sample value.
step_size_index: i32The index into the step size table (0-88).
Trait Implementations§
Source§impl Clone for AdpcmChannelState
impl Clone for AdpcmChannelState
Source§fn clone(&self) -> AdpcmChannelState
fn clone(&self) -> AdpcmChannelState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AdpcmChannelState
impl Debug for AdpcmChannelState
Source§impl Default for AdpcmChannelState
impl Default for AdpcmChannelState
Source§fn default() -> AdpcmChannelState
fn default() -> AdpcmChannelState
Returns the “default value” for a type. Read more
Source§impl PartialEq for AdpcmChannelState
impl PartialEq for AdpcmChannelState
Source§fn eq(&self, other: &AdpcmChannelState) -> bool
fn eq(&self, other: &AdpcmChannelState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AdpcmChannelState
impl StructuralPartialEq for AdpcmChannelState
Auto Trait Implementations§
impl Freeze for AdpcmChannelState
impl RefUnwindSafe for AdpcmChannelState
impl Send for AdpcmChannelState
impl Sync for AdpcmChannelState
impl Unpin for AdpcmChannelState
impl UnsafeUnpin for AdpcmChannelState
impl UnwindSafe for AdpcmChannelState
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