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: Duration, pub position: Duration, }
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: Duration
The duration of the frame
position: Duration
The position at the start of the frame
Trait Implementations
impl Clone for Frame
[src]
fn clone(&self) -> Frame
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more