pub struct AudioFrame {
pub samples: Tensor,
pub sample_rate: u32,
pub timestamp: Option<Timestamp>,
}Expand description
One decoded Float mono/stereo audio block.
Fields§
§samples: Tensor[channels,frames] normalized Float samples.
sample_rate: u32Frames per second.
timestamp: Option<Timestamp>Presentation time, absent when unknown.
Trait Implementations§
Source§impl Debug for AudioFrame
impl Debug for AudioFrame
Source§impl MemoryFootprint for AudioFrame
impl MemoryFootprint for AudioFrame
Source§fn resident_bytes(&self) -> usize
fn resident_bytes(&self) -> usize
Returns the conservative logical payload size in bytes.
Source§impl PinMemory for AudioFrame
impl PinMemory for AudioFrame
Source§fn pin_memory(self, d: Device) -> Result<Self>
fn pin_memory(self, d: Device) -> Result<Self>
Pins this value for the requested accelerator.
Auto Trait Implementations§
impl !Sync for AudioFrame
impl Forget for AudioFrame
impl Freeze for AudioFrame
impl RefUnwindSafe for AudioFrame
impl Send 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