[][src]Struct puremp3::Frame

pub struct Frame {
    pub header: FrameHeader,
    pub samples: [[f32; 1152]; 2],
    pub num_samples: usize,
}

A frame of MP3 data.

Each frame contains a header describing the format of the data, and the decoded samples. An MP3 frame contains either 576 or 1152 samples (depending on the format).

Fields

header: FrameHeader

The header of this MP3 frame.

samples: [[f32; 1152]; 2]

The decoded MP3 samples for the left and right channels. Each sample is in the range of [-1.0, 1.0]. Only the first num_samples entries will contain valid data. For mono streams, the data will be duplicated to the left and right channels.

num_samples: usize

The number of samples in the samples array. This will be either 576 or 1152 samples depending on the format of the MP3.

Auto Trait Implementations

impl Send for Frame

impl Sync for Frame

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]