[−][src]Trait spectrusty::audio::AmpLevels
A digital level to a sample amplitude conversion trait.
Required methods
fn amp_level(level: u32) -> T
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
.
Implementors
impl AmpLevels<f32> for EarInAmps2<f32>
[src]
impl AmpLevels<f32> for EarMicAmps4<f32>
[src]
impl AmpLevels<f32> for EarOutAmps4<f32>
[src]
impl AmpLevels<f32> for AyAmps<f32>
[src]
impl AmpLevels<f32> for AyFuseAmps<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<i16> for AyAmps<i16>
[src]
impl AmpLevels<i16> for AyFuseAmps<i16>
[src]
impl AmpLevels<i32> for EarInAmps2<i32>
[src]
impl AmpLevels<i32> for EarMicAmps4<i32>
[src]
impl AmpLevels<i32> for EarOutAmps4<i32>
[src]
impl AmpLevels<i32> for AyAmps<i32>
[src]
impl<T> AmpLevels<T> for LogAmpLevels16<T> where
T: Copy + FromSample<f32>,
[src]
T: Copy + FromSample<f32>,