Struct minimp3::Frame

source ·
pub struct Frame {
    pub data: Vec<i16>,
    pub sample_rate: i32,
    pub channels: usize,
    pub layer: usize,
    pub bitrate: i32,
}
Expand description

A MP3 frame, owning the decoded audio of that frame.

Fields

data: Vec<i16>

The decoded audio held by this frame. Channels are interleaved.

sample_rate: i32

This frame’s sample rate in hertz.

channels: usize

The number of channels in this frame.

layer: usize

MPEG layer used by this file.

bitrate: i32

Current bitrate as of this frame, in kb/s.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.