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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more