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

A digital level to a sample amplitude conversion trait.

Required Methods§

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§