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: boolWhether 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§
impl Freeze for DecodedStream
impl RefUnwindSafe for DecodedStream
impl Send for DecodedStream
impl Sync for DecodedStream
impl Unpin for DecodedStream
impl UnsafeUnpin for DecodedStream
impl UnwindSafe for DecodedStream
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