pub struct Frame(/* private fields */);Implementations§
Source§impl Frame
impl Frame
pub fn split_array<const N: usize>(value: [Frame; N]) -> ([f32; N], [f32; N])
pub fn sum_to_mono(self) -> f32
pub fn from_mut<'a>(value: &'a mut [f32; 2]) -> &'a mut Self
pub fn from_interleaved(value: &[f32]) -> &[Frame]
pub fn from_ref<'a>(value: &'a [f32; 2]) -> &'a Self
pub fn to_sample<S: FromSample<f32>>(self) -> [S; 2]
pub fn to_raw<'a>(into: &mut [Self]) -> &'a mut [[f32; 2]]
Sourcepub fn pan_constant_power(&mut self, angle: f32)
pub fn pan_constant_power(&mut self, angle: f32)
angle in radians between 0 and 90°
Trait Implementations§
Source§impl AddAssign for Frame
impl AddAssign for Frame
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl MulAssign<f32> for Frame
impl MulAssign<f32> for Frame
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*= operation. Read moreSource§impl SubAssign for Frame
impl SubAssign for Frame
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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