[][src]Trait fon::chan::Channel

pub trait Channel: Copy + Debug + Default + From<f64> + Ord + Add<Output = Self> + Div<Output = Self> + Mul<Output = Self> + Sub<Output = Self> + Sealed {
    const MIN: Self;
    const MID: Self;
    const MAX: Self;

    fn to_f64(self) -> f64;
fn lerp(self, rhs: Self, t: Self) -> Self; }

Component of a speaker configuration, such as front left, lfe, etc.

Associated Constants

const MIN: Self

Minimum value (negative one)

const MID: Self

Mid value (zero/silence)

const MAX: Self

Maximum value (one)

Loading content...

Required methods

fn to_f64(self) -> f64

Convert to f64

fn lerp(self, rhs: Self, t: Self) -> Self

Linear interpolation

Loading content...

Implementors

impl Channel for Ch8[src]

fn lerp(self, rhs: Self, t: Self) -> Self[src]

Linear interpolation

impl Channel for Ch16[src]

fn lerp(self, rhs: Self, t: Self) -> Self[src]

Linear interpolation

impl Channel for Ch32[src]

fn lerp(self, rhs: Self, t: Self) -> Self[src]

Linear interpolation

impl Channel for Ch64[src]

fn lerp(self, rhs: Self, t: Self) -> Self[src]

Linear interpolation

Loading content...