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 | Number of samples per second |
bit_rate | Stream bit rate |
layer | Audio layer (I, II or III) |
mode | Single Channel, Dual Channel, Joint Stereo or Stereo |
samples | Samples are organized into a vector of channels. For stereo, the left channel is channel 0. |
duration | The duration of the frame |
position | The position at the start of the frame |