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

    fn to_f32(self) -> f32;

    fn lerp(self, rhs: Self, t: Self) -> Self { ... }
}
Expand description

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

Associated Constants

Minimum value (negative one)

Mid value (zero/silence)

Maximum value (one)

Required methods

Convert to f32

Provided methods

Linear interpolation

Implementors