pub enum AudioDataBody {
Aac(AacPacket),
Unknown {
sound_format: SoundFormat,
data: Bytes,
},
}Expand description
FLV Tag Audio Data Body
This is the container for the audio data body.
Defined by:
- video_file_format_spec_v10.pdf (Chapter 1 - The FLV File Format - Audio tags)
- video_file_format_spec_v10_1.pdf (Annex E.4.2.1 - AUDIODATA)
Variants§
Implementations§
Source§impl AudioDataBody
impl AudioDataBody
Sourcepub fn demux(
sound_format: SoundFormat,
reader: &mut Cursor<Bytes>,
) -> Result<Self>
pub fn demux( sound_format: SoundFormat, reader: &mut Cursor<Bytes>, ) -> Result<Self>
Demux the audio data body from the given reader
The reader will be entirely consumed.
Trait Implementations§
Source§impl Clone for AudioDataBody
impl Clone for AudioDataBody
Source§fn clone(&self) -> AudioDataBody
fn clone(&self) -> AudioDataBody
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioDataBody
impl Debug for AudioDataBody
Source§impl PartialEq for AudioDataBody
impl PartialEq for AudioDataBody
impl StructuralPartialEq for AudioDataBody
Auto Trait Implementations§
impl !Freeze for AudioDataBody
impl RefUnwindSafe for AudioDataBody
impl Send for AudioDataBody
impl Sync for AudioDataBody
impl Unpin for AudioDataBody
impl UnwindSafe for AudioDataBody
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