pub struct AudioFrame {
pub sample_rate: u32,
pub channels: u16,
pub format: SampleFormat,
pub planes: Vec<Vec<u8>>,
pub samples: usize,
pub pts: Option<i64>,
}Expand description
A decoded raw audio frame (one block of samples across all channels).
Fields§
§sample_rate: u32§channels: u16§format: SampleFormat§planes: Vec<Vec<u8>>Sample buffers. Interleaved formats use one buffer; planar formats use one per channel.
samples: usizeNumber of samples per channel in this frame.
pts: Option<i64>Presentation timestamp in the source stream’s time base. None if unset.
Trait Implementations§
Source§impl Clone for AudioFrame
impl Clone for AudioFrame
Auto Trait Implementations§
impl Freeze for AudioFrame
impl RefUnwindSafe for AudioFrame
impl Send for AudioFrame
impl Sync for AudioFrame
impl Unpin for AudioFrame
impl UnsafeUnpin 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