[−][src]Struct fon::surround::Surround
Surround Sound 5.1 sample format (front left channel, rear left channel, rear right, front right channel, center, lfe).
Implementations
impl<C: Channel> Surround<C>
[src]
pub fn new<H>(one: H, two: H, three: H, four: H, five: H, six: H) -> Self where
C: From<H>,
[src]
C: From<H>,
Create a one-channel Sample.
Trait Implementations
impl<C: Clone + Channel> Clone for Surround<C>
[src]
impl<C: Copy + Channel> Copy for Surround<C>
[src]
impl<C: Debug + Channel> Debug for Surround<C>
[src]
impl<C: Default + Channel> Default for Surround<C>
[src]
impl<C: PartialEq + Channel> PartialEq<Surround<C>> for Surround<C>
[src]
pub fn eq(&self, other: &Surround<C>) -> bool
[src]
pub fn ne(&self, other: &Surround<C>) -> bool
[src]
impl<C: Channel> Sample for Surround<C>
[src]
pub const CONFIG: &'static [[f64; 2]]
[src]
type Chan = C
Channel type
pub fn channels(&self) -> &[Self::Chan]
[src]
pub fn channels_mut(&mut self) -> &mut [Self::Chan]
[src]
pub fn from_channels(ch: &[Self::Chan]) -> Self
[src]
pub const CHAN_COUNT: usize
[src]
pub fn lerp(&self, rhs: Self, t: Self) -> Self
[src]
pub fn blend_sample<O>(dst: &mut [Self], sample: &Self, op: O) where
O: Blend,
[src]
O: Blend,
pub fn blend_slice<O>(dst: &mut [Self], src: &[Self], op: O) where
O: Blend,
[src]
O: Blend,
pub fn blend<O>(&mut self, src: &Self, _op: O) where
O: Blend,
[src]
O: Blend,
pub fn convert<D>(self) -> D where
D: Sample,
D::Chan: From<Self::Chan> + From<f64>,
[src]
D: Sample,
D::Chan: From<Self::Chan> + From<f64>,
impl<C: Channel> StructuralPartialEq for Surround<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for Surround<C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
impl<C> Send for Surround<C> where
C: Send,
[src]
C: Send,
impl<C> Sync for Surround<C> where
C: Sync,
[src]
C: Sync,
impl<C> Unpin for Surround<C> where
C: Unpin,
[src]
C: Unpin,
impl<C> UnwindSafe for Surround<C> where
C: UnwindSafe,
[src]
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,