pub struct AudioTag<Data = Vec<u8>> {
pub timestamp: Timestamp,
pub stream_id: StreamId,
pub sound_format: SoundFormat,
pub sound_rate: SoundRate,
pub sound_size: SoundSize,
pub sound_type: SoundType,
pub aac_packet_type: Option<AacPacketType>,
pub data: Data,
}Expand description
Audio tag.
Fields§
§timestamp: TimestampTimestamp.
stream_id: StreamIdStream identifier.
sound_format: SoundFormatSound format.
sound_rate: SoundRateSound rate.
sound_size: SoundSizeSound size.
sound_type: SoundTypeSound yype.
aac_packet_type: Option<AacPacketType>AAC packet type.
This is only present if sound_format == SoundFormat::Aac.
data: DataAudio data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Data> Freeze for AudioTag<Data>where
Data: Freeze,
impl<Data> RefUnwindSafe for AudioTag<Data>where
Data: RefUnwindSafe,
impl<Data> Send for AudioTag<Data>where
Data: Send,
impl<Data> Sync for AudioTag<Data>where
Data: Sync,
impl<Data> Unpin for AudioTag<Data>where
Data: Unpin,
impl<Data> UnwindSafe for AudioTag<Data>where
Data: UnwindSafe,
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