Trait audio_core::Frame
source · pub trait Frame {
type Sample: Copy;
type Frame<'this>: Frame<Sample = Self::Sample>
where Self: 'this;
type Iter<'this>: Iterator<Item = Self::Sample>
where Self: 'this;
// Required methods
fn as_frame(&self) -> Self::Frame<'_>;
fn len(&self) -> usize;
fn get(&self, channel: usize) -> Option<Self::Sample>;
fn iter(&self) -> Self::Iter<'_>;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
The buffer of a single frame.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.