Skip to main content

DecodedStream

Struct DecodedStream 

Source
pub struct DecodedStream {
    pub interleaved: Vec<i32>,
    pub channels: u32,
    pub bits_per_sample: u32,
    pub sample_rate: u32,
    pub total_samples: u64,
    pub md5: [u8; 16],
    pub md5_ok: bool,
    pub seek_points: Vec<SeekPoint>,
}
Expand description

A fully decoded FLAC stream (fLaC marker + metadata + frames).

Fields§

§interleaved: Vec<i32>§channels: u32§bits_per_sample: u32§sample_rate: u32§total_samples: u64§md5: [u8; 16]

The STREAMINFO MD5 (all-zero if the encoder had MD5 off).

§md5_ok: bool

Whether the decoded audio’s MD5 matches STREAMINFO (trivially true when STREAMINFO carries no MD5).

§seek_points: Vec<SeekPoint>

The seek points from the SEEKTABLE block, if any (empty otherwise). Trailing placeholder points (sample number 0xFFFF…) are retained as stored.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.