pub struct AudioFrame {
pub samples: Vec<f32>,
pub spec: AudioSpec,
}Expand description
A single frame of audio data.
Fields§
§samples: Vec<f32>Audio samples as f32 values (typically -1.0 to 1.0)
spec: AudioSpecTrait 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 · 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
Source§impl From<AudioBlock> for AudioFrame
impl From<AudioBlock> for AudioFrame
Source§fn from(block: AudioBlock) -> Self
fn from(block: AudioBlock) -> Self
Converts to this type from the input type.
Source§impl From<AudioFrame> for AudioBlock
impl From<AudioFrame> for AudioBlock
Source§fn from(frame: AudioFrame) -> Self
fn from(frame: AudioFrame) -> Self
Converts to this type from the input type.
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