pub struct DecodedBlock {
pub samples: Vec<i32>,
pub sample_number: u64,
pub block_size: usize,
pub channels: usize,
}Expand description
A decoded PCM block.
Fields§
§samples: Vec<i32>Interleaved i32 PCM samples (channel-minor order).
sample_number: u64Sample number of the first sample in this block.
block_size: usizeNumber of samples per channel in this block.
channels: usizeNumber of channels.
Trait Implementations§
Source§impl Clone for DecodedBlock
impl Clone for DecodedBlock
Source§fn clone(&self) -> DecodedBlock
fn clone(&self) -> DecodedBlock
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DecodedBlock
impl RefUnwindSafe for DecodedBlock
impl Send for DecodedBlock
impl Sync for DecodedBlock
impl Unpin for DecodedBlock
impl UnsafeUnpin for DecodedBlock
impl UnwindSafe for DecodedBlock
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more