[−][src]Trait spectrusty_core::audio::AmpLevels
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
.