Exemplo n.º 1
0
 public static float DecibelToVolume(double db)
 {
     return((db == -24) ? 0 : (float)((db < -16) ? MusicMath.DecibelToLinear(db * 2 + 16) : MusicMath.DecibelToLinear(db)));
 }
Exemplo n.º 2
0
 private float DecibelToVolume(double db)
 {
     return(db == -24 ? 0 : db < -16 ? (float)MusicMath.DecibelToLinear(db * 2 + 16) : (float)MusicMath.DecibelToLinear(db));
 }