Struct simplemad::Frame
[−]
[src]
pub struct Frame { pub sample_rate: u32, pub bit_rate: u32, pub layer: MadLayer, pub mode: MadMode, pub samples: Vec<Vec<MadFixed32>>, pub duration: f32, pub position: f64, }
A decoded frame
Fields
sample_rate: u32
Number of samples per second
bit_rate: u32
Stream bit rate
layer: MadLayer
Audio layer (I, II or III)
mode: MadMode
Single Channel, Dual Channel, Joint Stereo or Stereo
samples: Vec<Vec<MadFixed32>>
Samples are organized into a vector of channels. For stereo, the left channel is channel 0.
duration: f32
The duration of the frame in milliseconds
position: f64
The position in milliseconds at the start of the frame
Trait Implementations
impl Debug for Frame
[src]
impl Clone for Frame
[src]
fn clone(&self) -> Frame
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more