pub struct DecoderPcmFrame {
pub metadata: DecoderPcmFrameMetadata,
pub data: Vec<u8>,
}Expand description
A decoded PCM audio frame returned by an audio decoder session.
Fields§
§metadata: DecoderPcmFrameMetadata§data: Vec<u8>PCM sample bytes in the declared layout. F32 and S16 samples are always little-endian.
Implementations§
Source§impl DecoderPcmFrame
impl DecoderPcmFrame
Sourcepub fn validate(&self) -> Result<(), DecoderError>
pub fn validate(&self) -> Result<(), DecoderError>
Validates metadata and the owned PCM payload length.
Trait Implementations§
Source§impl Clone for DecoderPcmFrame
impl Clone for DecoderPcmFrame
Source§fn clone(&self) -> DecoderPcmFrame
fn clone(&self) -> DecoderPcmFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecoderPcmFrame
impl Debug for DecoderPcmFrame
Source§impl<'de> Deserialize<'de> for DecoderPcmFrame
impl<'de> Deserialize<'de> for DecoderPcmFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecoderPcmFrame
Source§impl PartialEq for DecoderPcmFrame
impl PartialEq for DecoderPcmFrame
Source§impl Serialize for DecoderPcmFrame
impl Serialize for DecoderPcmFrame
impl StructuralPartialEq for DecoderPcmFrame
Auto Trait Implementations§
impl Freeze for DecoderPcmFrame
impl RefUnwindSafe for DecoderPcmFrame
impl Send for DecoderPcmFrame
impl Sync for DecoderPcmFrame
impl Unpin for DecoderPcmFrame
impl UnsafeUnpin for DecoderPcmFrame
impl UnwindSafe for DecoderPcmFrame
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