[][src]Trait spectrusty_core::audio::AmpLevels

pub trait AmpLevels<T: Copy> {
    pub fn amp_level(level: u32) -> T;
}

A digital level to a sample amplitude conversion trait.

Required methods

pub fn amp_level(level: u32) -> T[src]

This method should return the appropriate digital sample amplitude for the given level.

The best approximation is a*(level/max_level*b).exp() according to this document.

Please note that most callbacks use only a limited number of bits in the level.

Loading content...

Implementors

impl AmpLevels<f32> for EarInAmps2<f32>[src]

impl AmpLevels<f32> for EarMicAmps4<f32>[src]

impl AmpLevels<f32> for EarOutAmps4<f32>[src]

impl AmpLevels<i16> for EarInAmps2<i16>[src]

impl AmpLevels<i16> for EarMicAmps4<i16>[src]

impl AmpLevels<i16> for EarOutAmps4<i16>[src]

impl AmpLevels<i32> for EarInAmps2<i32>[src]

impl AmpLevels<i32> for EarMicAmps4<i32>[src]

impl AmpLevels<i32> for EarOutAmps4<i32>[src]

Loading content...