pub struct SilkFrame {
pub header: SilkFrameHeader,
pub lpc: SilkLpcCoeffs,
pub samples: Vec<i16>,
pub sample_count: usize,
}Expand description
A decoded SILK frame.
Fields§
§header: SilkFrameHeaderParsed frame header.
lpc: SilkLpcCoeffsLPC coefficients used for synthesis.
samples: Vec<i16>Decoded PCM samples (i16, linear).
sample_count: usizeNumber of samples in this frame.
Implementations§
Source§impl SilkFrame
impl SilkFrame
Sourcepub fn sample_count(&self) -> usize
pub fn sample_count(&self) -> usize
Returns the number of PCM samples in this frame.
Sourcepub fn as_f32_samples(&self) -> Vec<f32>
pub fn as_f32_samples(&self) -> Vec<f32>
Returns the samples normalised to the range [-1.0, 1.0] as f32.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SilkFrame
impl RefUnwindSafe for SilkFrame
impl Send for SilkFrame
impl Sync for SilkFrame
impl Unpin for SilkFrame
impl UnsafeUnpin for SilkFrame
impl UnwindSafe for SilkFrame
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