pub struct AudioFrame {
pub pts: i64,
pub duration: u64,
pub sample_rate: u32,
pub channels: u16,
pub format: SampleFormat,
pub data: Bytes,
}Expand description
One audio buffer (interleaved PCM).
Fields§
§pts: i64Presentation timestamp in the stream timebase.
duration: u64Duration in timebase units.
sample_rate: u32Sample rate (Hz).
channels: u16Channel count.
format: SampleFormatPCM sample format.
data: BytesInterleaved sample bytes.
Trait Implementations§
Source§impl Clone for AudioFrame
impl Clone for AudioFrame
Source§fn clone(&self) -> AudioFrame
fn clone(&self) -> AudioFrame
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 AudioFrame
impl Debug for AudioFrame
impl Eq for AudioFrame
Source§impl PartialEq for AudioFrame
impl PartialEq for AudioFrame
impl StructuralPartialEq 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