Struct retina::codec::AudioFrame
source · pub struct AudioFrame { /* private fields */ }
Expand description
An audio frame, which consists of one or more samples.
Implementations§
source§impl AudioFrame
impl AudioFrame
pub fn ctx(&self) -> &PacketContext
pub fn stream_id(&self) -> usize
pub fn timestamp(&self) -> Timestamp
pub fn frame_length(&self) -> NonZeroU32
sourcepub fn loss(&self) -> u16
pub fn loss(&self) -> u16
Returns the number of lost RTP packets before this audio frame. See crate::rtp::ReceivedPacket::loss.
Note that if loss occurs during a fragmented frame, more than this number of packets’ worth of data may be skipped.
pub fn data(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AudioFrame
impl RefUnwindSafe for AudioFrame
impl Send for AudioFrame
impl Sync for AudioFrame
impl Unpin for AudioFrame
impl UnwindSafe for AudioFrame
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