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