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

Number of samples per second

Stream bit rate

Audio layer (I, II or III)

Single Channel, Dual Channel, Joint Stereo or Stereo

Samples are organized into a vector of channels. For stereo, the left channel is channel 0.

The duration of the frame

The position at the start of the frame

Trait Implementations

impl Clone for Frame
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Frame
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Frame

impl Sync for Frame