Trait spectrusty::audio::AmpLevels
source · Expand description
A digital level to a sample amplitude conversion trait.
Required Methods§
sourcefn amp_level(level: u32) -> T
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
.