Enum lowpass_filter::ChannelInterleavement[][src]

pub enum ChannelInterleavement {
    LRLR,
    LLRR,
}

Re-export convenient audio utilities. Describes the interleavement of audio data if it is not mono but stereo.

Variants

LRLR

Stereo samples of one vector of audio data are alternating: left, right, left, right

LLRR

Stereo samples of one vector of audio data are ordered like: left, left, …, right, right In this case the length must be a multiple of 2.

Implementations

impl ChannelInterleavement[src]

Re-export convenient audio utilities.

pub fn is_lrlr(&self) -> bool[src]

pub fn is_lllrr(&self) -> bool[src]

pub fn to_channel_data(
    &self,
    interleaved_data: &[i16]
) -> (Vec<i16, Global>, Vec<i16, Global>)
[src]

Transforms the interleaved data into two vectors. Returns a tuple. First/left value is left channel, second/right value is right channel.

Trait Implementations

impl Clone for ChannelInterleavement[src]

impl Copy for ChannelInterleavement[src]

impl Debug for ChannelInterleavement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.