[−][src]Struct puremp3::Frame
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
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,