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

pub trait Channel: Copy + Debug + Default + PartialOrd + Add<Output = Self> + Div<Output = Self> + Mul<Output = Self> + Sub<Output = Self> + Neg<Output = Self> + AddAssign + SubAssign + DivAssign + MulAssign + Sealed + Unpin + From<Ch8> + From<Ch16> + From<Ch32> + From<Ch64> + Into<Ch8> + Into<Ch16> + Into<Ch32> + Into<Ch64> + 'static {
    pub const MIN: Self;
    pub const MID: Self;
    pub const MAX: Self;

    pub fn to_f64(self) -> f64;
pub fn from_f64(from: f64) -> Self; pub fn lerp(self, rhs: Self, t: Self) -> Self { ... } }

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

Associated Constants

pub const MIN: Self[src]

Minimum value (negative one)

pub const MID: Self[src]

Mid value (zero/silence)

pub const MAX: Self[src]

Maximum value (one)

Loading content...

Required methods

pub fn to_f64(self) -> f64[src]

Convert to f64

pub fn from_f64(from: f64) -> Self[src]

Convert from f64

Loading content...

Provided methods

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

Linear interpolation

Loading content...

Implementors

impl Channel for Ch8[src]

impl Channel for Ch16[src]

impl Channel for Ch32[src]

impl Channel for Ch64[src]

Loading content...