pub struct Mp3Data {
pub id: u16,
pub flags: u32,
pub block_size: u16,
pub frames_per_block: u16,
pub codec_delay: u16,
}
Expand description
- The extension data for MP3
Fields§
§id: u16
§flags: u32
§block_size: u16
§frames_per_block: u16
§codec_delay: u16
Implementations§
Source§impl Mp3Data
impl Mp3Data
pub const MPEGLAYER3_FLAG_PADDING_ISO: u32 = 0u32
pub const MPEGLAYER3_FLAG_PADDING_ON: u32 = 1u32
pub const MPEGLAYER3_FLAG_PADDING_OFF: u32 = 2u32
pub fn new(bitrate: u32, sample_rate: u32) -> Self
pub fn sizeof() -> usize
pub fn read(reader: &mut impl Reader) -> Result<Self, AudioReadError>
pub fn write(&self, writer: &mut dyn Writer) -> Result<(), AudioWriteError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mp3Data
impl RefUnwindSafe for Mp3Data
impl Send for Mp3Data
impl Sync for Mp3Data
impl Unpin for Mp3Data
impl UnwindSafe for Mp3Data
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